Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002289/0.002289, allocations: 182.6 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.203/2.203, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001253/0.001253, allocations: 94.84 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003934/0.0003936, allocations: 8 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3477/0.3482, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02583/0.3741, allocations: 20.3 MB / 394.9 MB, free: 28.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03223/0.4063, allocations: 18.76 MB / 413.7 MB, free: 9.664 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006327/0.4127, allocations: 59.62 kB / 413.8 MB, free: 9.605 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005892/0.4187, allocations: 1.274 MB / 415 MB, free: 8.324 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01262/0.4313, allocations: 2.991 MB / 418 MB, free: 5.324 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006281/0.4377, allocations: 1.278 MB / 419.3 MB, free: 4.043 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.03273/0.4705, allocations: 11.98 MB / 431.3 MB, free: 8.055 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00228/0.4728, allocations: 0.791 MB / 432.1 MB, free: 7.23 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003794/0.4766, allocations: 1.559 MB / 433.6 MB, free: 5.664 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004405/0.4811, allocations: 1.875 MB / 435.5 MB, free: 3.777 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001074/0.4822, allocations: 76 kB / 435.6 MB, free: 3.703 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00736/0.4896, allocations: 1.249 MB / 436.8 MB, free: 2.453 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001419/0.4911, allocations: 0.5078 MB / 437.3 MB, free: 1.941 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002702/0.4938, allocations: 1.178 MB / 438.5 MB, free: 0.7539 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01011/0.504, allocations: 4.648 MB / 443.2 MB, free: 12.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.504, allocations: 0 / 443.2 MB, free: 12.09 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.875e-06/0.5041, allocations: 0 / 443.2 MB, free: 12.09 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003099/0.5044, allocations: 0 / 443.2 MB, free: 12.09 MB / 330.7 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.01549/0.5199, allocations: 5.874 MB / 449 MB, free: 6.125 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.713e-05/0.5199, allocations: 8.031 kB / 449 MB, free: 6.117 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005996/0.5206, allocations: 161.2 kB / 449.2 MB, free: 5.949 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001705/0.5223, allocations: 0.7448 MB / 449.9 MB, free: 5.195 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01308/0.5354, allocations: 4.313 MB / 454.3 MB, free: 0.8008 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001065/0.5355, allocations: 66 kB / 454.3 MB, free: 0.7344 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005286/0.5361, allocations: 95.91 kB / 454.4 MB, free: 0.6406 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004273/0.5404, allocations: 1.317 MB / 455.7 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.675e-05/0.5405, allocations: 7.938 kB / 455.7 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001977/0.5407, allocations: 39.98 kB / 455.8 MB, free: 15.26 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.96e-05/0.5407, allocations: 35.98 kB / 455.8 MB, free: 15.22 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005143/0.5459, allocations: 1.523 MB / 457.3 MB, free: 13.7 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01886/0.5648, allocations: 5.634 MB / 463 MB, free: 7.969 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003422/0.5683, allocations: 1.028 MB / 464 MB, free: 6.93 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3708/0.9391, allocations: 60.22 MB / 0.5119 GB, free: 118.4 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00173/0.9409, allocations: 0.5855 MB / 0.5125 GB, free: 118.1 MB / 394.7 MB Notification: Performance of pre-optimization done (n=85): time 5.08e-06/0.941, allocations: 1.031 kB / 0.5125 GB, free: 118.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=85): time 0.006401/0.9474, allocations: 2.57 MB / 0.515 GB, free: 116.5 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.424e-05/0.9475, allocations: 67.25 kB / 0.5151 GB, free: 116.5 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01218/0.9597, allocations: 5.551 MB / 0.5205 GB, free: 113.6 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002649/0.96, allocations: 46.38 kB / 0.5205 GB, free: 113.6 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002823/0.9628, allocations: 2.364 MB / 0.5229 GB, free: 111.4 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005377/0.9634, allocations: 294.2 kB / 0.5231 GB, free: 111.1 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001249/0.9636, allocations: 27.97 kB / 0.5232 GB, free: 111.1 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.9637, allocations: 375.5 kB / 0.5235 GB, free: 110.7 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001413/0.9651, allocations: 420.3 kB / 0.5239 GB, free: 110.6 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001738/0.9669, allocations: 1.099 MB / 0.525 GB, free: 109.5 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001771/0.9687, allocations: 0.5702 MB / 0.5256 GB, free: 109.1 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.737e-05/0.9687, allocations: 8 kB / 0.5256 GB, free: 109.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004441/0.9732, allocations: 1.635 MB / 0.5272 GB, free: 107.5 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.728e-05/0.9733, allocations: 19.31 kB / 0.5272 GB, free: 107.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003039/0.9736, allocations: 160 kB / 0.5273 GB, free: 107.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.195e-05/0.9737, allocations: 39.98 kB / 0.5274 GB, free: 107.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002164/0.9758, allocations: 371.2 kB / 0.5277 GB, free: 106.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.439e-05/0.9759, allocations: 47.8 kB / 0.5278 GB, free: 106.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003284/0.9792, allocations: 194.2 kB / 0.5279 GB, free: 106.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004354/0.9797, allocations: 127.9 kB / 0.5281 GB, free: 106.6 MB / 394.7 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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002302/0.982, allocations: 0.7183 MB / 0.5288 GB, free: 105.8 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001333/0.9834, allocations: 0.714 MB / 0.5295 GB, free: 105.1 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008569/0.992, allocations: 2.246 MB / 0.5317 GB, free: 103 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.849e-05/0.992, allocations: 8 kB / 0.5317 GB, free: 103 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.992, allocations: 0 / 0.5317 GB, free: 103 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.237e-05/0.9921, allocations: 3.984 kB / 0.5317 GB, free: 103 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009178/1.001, allocations: 3.661 MB / 0.5352 GB, free: 99.26 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002911/1.002, allocations: 136 kB / 0.5354 GB, free: 99.13 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001397/1.003, allocations: 167.9 kB / 0.5355 GB, free: 98.96 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.234e-05/1.003, allocations: 4 kB / 0.5355 GB, free: 98.96 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000186/1.003, allocations: 63.98 kB / 0.5356 GB, free: 98.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.624e-06/1.003, allocations: 0 / 0.5356 GB, free: 98.9 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/1.003, allocations: 9.688 kB / 0.5356 GB, free: 98.89 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005643/1.009, allocations: 2.318 MB / 0.5379 GB, free: 96.53 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002286/1.011, allocations: 0.8083 MB / 0.5387 GB, free: 95.7 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001314/1.013, allocations: 19.95 kB / 0.5387 GB, free: 95.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002597/1.015, allocations: 43.97 kB / 0.5387 GB, free: 95.63 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004801/1.016, allocations: 100.5 kB / 0.5388 GB, free: 95.54 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001856/1.016, allocations: 71.98 kB / 0.5389 GB, free: 95.46 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.007856/1.024, allocations: 3.563 MB / 0.5424 GB, free: 91.93 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.11e-07/1.024, allocations: 0 / 0.5424 GB, free: 91.93 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003693/1.028, allocations: 1.08 MB / 0.5434 GB, free: 90.89 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00844/1.036, allocations: 3.968 MB / 0.5473 GB, free: 87.14 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003948/1.04, allocations: 1.467 MB / 0.5487 GB, free: 85.63 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.206e-06/1.04, allocations: 0 / 0.5487 GB, free: 85.63 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001835/1.042, allocations: 0.7941 MB / 0.5495 GB, free: 84.79 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005252/1.047, allocations: 0.9295 MB / 0.5504 GB, free: 83.86 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1248/1.172, allocations: 59.25 MB / 0.6083 GB, free: 20.31 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002981/1.175, allocations: 2.722 MB / 0.6109 GB, free: 17.56 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003711/1.179, allocations: 2.421 MB / 0.6133 GB, free: 15.14 MB / 394.7 MB Notification: Performance of SimCode: time 1.603e-06/1.179, allocations: 0 / 0.6133 GB, free: 15.14 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.657/5.836, allocations: 91.65 MB / 0.7028 GB, free: 112.6 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat does not exist to compare? outputFormat=mat