Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.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.Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Inverter",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.002332/0.002338, allocations: 188.6 kB / 16.4 MB, free: 5.625 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.324/2.324, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001153/0.001153, allocations: 86.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004062/0.0004067, allocations: 8 kB / 327.1 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1035, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.01017/0.1137, allocations: 6.223 MB / 380.9 MB, free: 9.094 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.303/0.4169, allocations: 15.75 MB / 396.6 MB, free: 8.57 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001135/0.418, allocations: 30.22 kB / 396.6 MB, free: 8.57 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003109/0.4212, allocations: 0.7117 MB / 397.4 MB, free: 8.566 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007183/0.4284, allocations: 1.558 MB / 398.9 MB, free: 8.453 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006581/0.4351, allocations: 1.077 MB / 400 MB, free: 8.383 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.008819/0.4439, allocations: 3.043 MB / 403 MB, free: 8.027 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005638/0.4446, allocations: 199.4 kB / 403.2 MB, free: 7.941 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001219/0.4458, allocations: 427.5 kB / 403.6 MB, free: 7.812 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001133/0.447, allocations: 0.5062 MB / 404.1 MB, free: 7.629 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001837/0.4472, allocations: 23.53 kB / 404.2 MB, free: 7.629 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006986/0.4542, allocations: 1.193 MB / 405.4 MB, free: 7.605 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004118/0.4546, allocations: 143.8 kB / 405.5 MB, free: 7.543 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008425/0.4555, allocations: 324.9 kB / 405.8 MB, free: 7.453 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003705/0.4592, allocations: 1.515 MB / 407.3 MB, free: 7.066 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.177e-05/0.4593, allocations: 0 / 407.3 MB, free: 7.066 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.484e-06/0.4593, allocations: 0 / 407.3 MB, free: 7.066 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.9e-05/0.4594, allocations: 0 / 407.3 MB, free: 7.066 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.004984/0.4644, allocations: 1.824 MB / 409.2 MB, free: 5.926 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.707e-05/0.4644, allocations: 9.531 kB / 409.2 MB, free: 5.926 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002197/0.4647, allocations: 65.38 kB / 409.2 MB, free: 5.887 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004147/0.4651, allocations: 193.6 kB / 409.4 MB, free: 5.789 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003563/0.4687, allocations: 1.279 MB / 410.7 MB, free: 5.172 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.811e-05/0.4688, allocations: 20.94 kB / 410.7 MB, free: 5.168 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001241/0.4689, allocations: 30.83 kB / 410.8 MB, free: 5.164 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001491/0.4704, allocations: 455.7 kB / 411.2 MB, free: 4.922 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.98e-05/0.4705, allocations: 1.188 kB / 411.2 MB, free: 4.922 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.702e-05/0.4705, allocations: 10.5 kB / 411.2 MB, free: 4.914 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.292e-05/0.4706, allocations: 6.531 kB / 411.2 MB, free: 4.914 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001862/0.4724, allocations: 0.5108 MB / 411.7 MB, free: 4.719 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004509/0.477, allocations: 1.624 MB / 413.4 MB, free: 3.551 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001644/0.4787, allocations: 413.3 kB / 413.8 MB, free: 3.348 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.038/0.5167, allocations: 15.32 MB / 429.1 MB, free: 4.156 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001539/0.5183, allocations: 279.9 kB / 429.4 MB, free: 3.871 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.201e-05/0.5184, allocations: 0 / 429.4 MB, free: 3.871 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.007285/0.5257, allocations: 0.9083 MB / 430.3 MB, free: 2.934 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.901e-05/0.5259, allocations: 63.33 kB / 430.3 MB, free: 2.859 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005363/0.5313, allocations: 1.448 MB / 431.8 MB, free: 1.375 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001467/0.5315, allocations: 37.7 kB / 431.8 MB, free: 1.332 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008446/0.5324, allocations: 0.6271 MB / 432.4 MB, free: 0.7031 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002153/0.5326, allocations: 94.73 kB / 432.5 MB, free: 0.6094 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.519e-05/0.5327, allocations: 8 kB / 432.5 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.5329, allocations: 334.8 kB / 432.9 MB, free: 272 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00088/0.5337, allocations: 177 kB / 433 MB, free: 92 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001037/0.5348, allocations: 387.4 kB / 433.4 MB, free: 15.62 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009628/0.5358, allocations: 224 kB / 433.6 MB, free: 15.4 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.013e-05/0.5358, allocations: 4 kB / 433.6 MB, free: 15.4 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002434/0.5383, allocations: 0.6396 MB / 434.3 MB, free: 14.75 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.573e-05/0.5384, allocations: 8 kB / 434.3 MB, free: 14.74 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000106/0.5385, allocations: 43.98 kB / 434.3 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004975/0.539, allocations: 133.3 kB / 434.5 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008488/0.5399, allocations: 119.8 kB / 434.6 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000996/0.5409, allocations: 0.6823 MB / 435.3 MB, free: 13.74 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001396/0.5423, allocations: 83.47 kB / 435.3 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000135/0.5425, allocations: 36 kB / 435.4 MB, free: 13.62 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0008441/0.5433, allocations: 281.6 kB / 435.6 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005689/0.5439, allocations: 193.7 kB / 435.8 MB, free: 13.15 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003818/0.5477, allocations: 0.7787 MB / 436.6 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.19e-05/0.5478, allocations: 3.938 kB / 436.6 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.5478, allocations: 3.938 kB / 436.6 MB, free: 12.35 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.5479, allocations: 7.984 kB / 436.6 MB, free: 12.34 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004616/0.5525, allocations: 1.347 MB / 438 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001098/0.5527, allocations: 35.98 kB / 438 MB, free: 10.89 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004942/0.5532, allocations: 55.89 kB / 438.1 MB, free: 10.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004544/0.5536, allocations: 128.8 kB / 438.2 MB, free: 10.71 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.267e-05/0.5537, allocations: 20 kB / 438.2 MB, free: 10.69 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009319/0.5547, allocations: 0.6694 MB / 438.9 MB, free: 9.996 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-05/0.5547, allocations: 8.016 kB / 438.9 MB, free: 9.988 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002805/0.5575, allocations: 0.7903 MB / 439.7 MB, free: 9.152 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009163/0.5585, allocations: 270.8 kB / 439.9 MB, free: 8.867 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003233/0.5589, allocations: 8 kB / 440 MB, free: 8.859 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009189/0.5598, allocations: 43.95 kB / 440 MB, free: 8.816 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002087/0.56, allocations: 43.91 kB / 440 MB, free: 8.773 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.338e-05/0.5601, allocations: 20 kB / 440.1 MB, free: 8.754 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002482/0.5626, allocations: 0.9535 MB / 441 MB, free: 7.781 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.343e-06/0.5627, allocations: 0 / 441 MB, free: 7.781 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002112/0.5648, allocations: 327.8 kB / 441.3 MB, free: 7.461 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.004644/0.5695, allocations: 1.91 MB / 443.2 MB, free: 5.508 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002553/0.5721, allocations: 0.5475 MB / 443.8 MB, free: 4.949 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.274e-06/0.5722, allocations: 4.062 kB / 443.8 MB, free: 4.945 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001321/0.5735, allocations: 327.1 kB / 444.1 MB, free: 4.613 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001951/0.5755, allocations: 246.9 kB / 444.4 MB, free: 4.367 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03485/0.6104, allocations: 12.5 MB / 456.9 MB, free: 7.152 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001049/0.6116, allocations: 1.187 MB / 458 MB, free: 5.934 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001134/0.6127, allocations: 0.5656 MB / 458.6 MB, free: 5.367 MB / 330.7 MB Notification: Performance of SimCode: time 1.212e-06/0.6127, allocations: 0 / 458.6 MB, free: 5.367 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.307/3.92, allocations: 30.91 MB / 489.5 MB, free: 6.414 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter_res.mat does not exist to compare? outputFormat=mat