Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001325/0.001326, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001505/0.001505, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2519, allocations: 50.54 MB / 408.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02727/0.2793, allocations: 26.72 MB / 435.5 MB, free: 6.691 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03099/0.3103, allocations: 22.36 MB / 457.8 MB, free: 248 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004764/0.3151, allocations: 178.5 kB / 458 MB, free: 68 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00548/0.3206, allocations: 1.776 MB / 459.8 MB, free: 14.28 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01193/0.3326, allocations: 3.216 MB / 463 MB, free: 11.04 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006384/0.339, allocations: 1.619 MB / 464.6 MB, free: 9.418 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02152/0.3606, allocations: 12.83 MB / 477.5 MB, free: 12.55 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002216/0.3628, allocations: 0.8708 MB / 478.3 MB, free: 11.64 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003691/0.3665, allocations: 2.064 MB / 480.4 MB, free: 9.566 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003074/0.3696, allocations: 2.1 MB / 482.5 MB, free: 7.453 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004197/0.37, allocations: 132 kB / 482.6 MB, free: 7.324 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004579/0.3746, allocations: 1.545 MB / 484.2 MB, free: 5.777 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007077/0.3754, allocations: 0.6049 MB / 484.8 MB, free: 5.168 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00362/0.379, allocations: 2.62 MB / 487.4 MB, free: 2.531 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01046/0.3895, allocations: 6.663 MB / 494 MB, free: 11.84 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.3895, allocations: 0 / 494 MB, free: 11.84 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3895, allocations: 0 / 494 MB, free: 11.84 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001781/0.3897, allocations: 4 kB / 494.1 MB, free: 11.83 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01127/0.401, allocations: 6.93 MB / 0.4892 GB, free: 4.801 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.479e-05/0.4011, allocations: 12.02 kB / 0.4893 GB, free: 4.789 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002391/0.4013, allocations: 157.2 kB / 0.4894 GB, free: 4.625 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001077/0.4024, allocations: 0.7802 MB / 0.4902 GB, free: 3.84 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00776/0.4102, allocations: 4.663 MB / 0.4947 GB, free: 15.09 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.037e-05/0.4103, allocations: 69.98 kB / 0.4948 GB, free: 15.02 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002771/0.4106, allocations: 103.8 kB / 0.4949 GB, free: 14.92 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00247/0.413, allocations: 1.297 MB / 0.4961 GB, free: 13.61 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.152e-05/0.4131, allocations: 0 / 0.4961 GB, free: 13.61 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001317/0.4132, allocations: 36 kB / 0.4962 GB, free: 13.57 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.274e-05/0.4133, allocations: 43.97 kB / 0.4962 GB, free: 13.53 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002677/0.4159, allocations: 1.48 MB / 0.4977 GB, free: 12.05 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01091/0.4269, allocations: 5.623 MB / 0.5032 GB, free: 6.332 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00256/0.4295, allocations: 0.9812 MB / 0.5041 GB, free: 5.34 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001872/0.4314, allocations: 1.223 MB / 0.5053 GB, free: 4.121 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2513/0.6827, allocations: 61.07 MB / 0.565 GB, free: 103.2 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008486/0.6836, allocations: 0.5569 MB / 0.5655 GB, free: 102.9 MB / 462.1 MB Notification: Performance of pre-optimization done (n=85): time 3.767e-06/0.6836, allocations: 3.469 kB / 0.5655 GB, free: 102.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=85): time 0.002731/0.6863, allocations: 1.905 MB / 0.5674 GB, free: 102.4 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.84e-05/0.6864, allocations: 69.94 kB / 0.5674 GB, free: 102.4 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004853/0.6913, allocations: 5.591 MB / 0.5729 GB, free: 97.54 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001179/0.6914, allocations: 41.7 kB / 0.5729 GB, free: 97.49 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001574/0.693, allocations: 2.965 MB / 0.5758 GB, free: 94.6 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002376/0.6932, allocations: 308 kB / 0.5761 GB, free: 94.34 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003817/0.6936, allocations: 428.8 kB / 0.5765 GB, free: 93.92 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.675e-05/0.6937, allocations: 303.7 kB / 0.5768 GB, free: 93.62 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006892/0.6943, allocations: 403.8 kB / 0.5772 GB, free: 93.23 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008464/0.6952, allocations: 1.089 MB / 0.5783 GB, free: 91.84 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001617/0.6968, allocations: 1.604 MB / 0.5798 GB, free: 89.96 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.998e-06/0.6969, allocations: 8 kB / 0.5798 GB, free: 89.96 MB / 462.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002794/0.6997, allocations: 2.24 MB / 0.582 GB, free: 87.73 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.431e-05/0.6997, allocations: 23.92 kB / 0.582 GB, free: 87.71 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001773/0.6999, allocations: 160 kB / 0.5822 GB, free: 87.55 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.513e-05/0.6999, allocations: 35.56 kB / 0.5822 GB, free: 87.52 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001048/0.701, allocations: 362.4 kB / 0.5826 GB, free: 87.17 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.863e-05/0.701, allocations: 51.78 kB / 0.5826 GB, free: 87.12 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001598/0.7026, allocations: 194.9 kB / 0.5828 GB, free: 86.98 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001316/0.7027, allocations: 120 kB / 0.5829 GB, free: 86.86 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001062/0.7038, allocations: 0.7082 MB / 0.5836 GB, free: 86.16 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004964/0.7043, allocations: 0.7569 MB / 0.5844 GB, free: 85.39 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003475/0.7078, allocations: 2.151 MB / 0.5865 GB, free: 83.32 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.648e-06/0.7078, allocations: 8 kB / 0.5865 GB, free: 83.31 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.7078, allocations: 0 / 0.5865 GB, free: 83.31 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.7079, allocations: 3.984 kB / 0.5865 GB, free: 83.31 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004274/0.7121, allocations: 3.608 MB / 0.59 GB, free: 79.66 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001439/0.7123, allocations: 141.3 kB / 0.5901 GB, free: 79.53 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000669/0.713, allocations: 147.8 kB / 0.5903 GB, free: 79.38 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.174e-06/0.713, allocations: 4 kB / 0.5903 GB, free: 79.38 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.495e-05/0.7131, allocations: 63.92 kB / 0.5903 GB, free: 79.32 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.119e-06/0.7131, allocations: 8.062 kB / 0.5903 GB, free: 79.31 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.7131, allocations: 0 / 0.5903 GB, free: 79.31 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002581/0.7157, allocations: 2.189 MB / 0.5925 GB, free: 77.09 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001028/0.7167, allocations: 0.8525 MB / 0.5933 GB, free: 76.23 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004739/0.7172, allocations: 15.98 kB / 0.5933 GB, free: 76.21 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001067/0.7183, allocations: 39.97 kB / 0.5934 GB, free: 76.17 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001888/0.7185, allocations: 96.48 kB / 0.5935 GB, free: 76.08 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.734e-05/0.7186, allocations: 67.98 kB / 0.5935 GB, free: 76.01 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003821/0.7224, allocations: 3.608 MB / 0.597 GB, free: 72.43 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.7224, allocations: 0 / 0.597 GB, free: 72.43 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002221/0.7246, allocations: 1.089 MB / 0.5981 GB, free: 71.41 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004071/0.7287, allocations: 3.846 MB / 0.6019 GB, free: 67.59 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001946/0.7307, allocations: 1.42 MB / 0.6033 GB, free: 66.12 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.7307, allocations: 0 / 0.6033 GB, free: 66.12 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008613/0.7316, allocations: 0.7786 MB / 0.604 GB, free: 65.29 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004013/0.7356, allocations: 1.202 MB / 0.6052 GB, free: 64.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03392/0.7695, allocations: 30.56 MB / 0.635 GB, free: 32.75 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001235/0.7708, allocations: 2.595 MB / 0.6376 GB, free: 30.12 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001805/0.7726, allocations: 0.6923 MB / 0.6382 GB, free: 29.43 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001607/0.7742, allocations: 2.389 MB / 0.6406 GB, free: 27.04 MB / 462.1 MB Notification: Performance of SimCode: time 1.353e-06/0.7742, allocations: 0 / 0.6406 GB, free: 27.04 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3946/1.169, allocations: 111 MB / 0.749 GB, free: 171.6 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.47/28.64, allocations: 7.766 kB / 0.749 GB, free: 171.6 MB / 0.5137 GB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1)