Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S.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.Digital.Examples.INV3S,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_INV3S",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.00226/0.002265, allocations: 178.3 kB / 8.359 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.311/2.311, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001118/0.001118, allocations: 95.08 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.599e-05/2.615e-05, allocations: 4 kB / 314.9 MB, free: 9.066 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3483/0.3483, allocations: 47.57 MB / 362.4 MB, free: 45.7 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1337/0.4821, allocations: 81.17 MB / 443.6 MB, free: 5.051 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002771/0.4825, allocations: 75.95 kB / 443.7 MB, free: 4.977 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.09831/0.5808, allocations: 27.88 MB / 471.6 MB, free: 9.219 MB / 363.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.5809, allocations: 0 / 471.6 MB, free: 9.219 MB / 363.1 MB Notification: Performance of Transformations before backend: time 1.322e-05/0.5809, allocations: 4 kB / 471.6 MB, free: 9.215 MB / 363.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007395/0.5816, allocations: 0.6136 MB / 472.2 MB, free: 8.531 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.5817, allocations: 8.031 kB / 472.2 MB, free: 8.523 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001075/0.5818, allocations: 35.62 kB / 472.2 MB, free: 8.488 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004275/0.5822, allocations: 259.6 kB / 472.5 MB, free: 8.191 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.94e-05/0.5823, allocations: 12 kB / 472.5 MB, free: 8.18 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.085e-05/0.5824, allocations: 8 kB / 472.5 MB, free: 8.172 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002137/0.5826, allocations: 60.78 kB / 472.5 MB, free: 8.113 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003435/0.5829, allocations: 141.6 kB / 472.7 MB, free: 7.969 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.583, allocations: 0 / 472.7 MB, free: 7.969 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.178e-05/0.583, allocations: 4 kB / 472.7 MB, free: 7.965 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.583, allocations: 0 / 472.7 MB, free: 7.965 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001013/0.5841, allocations: 469 kB / 473.1 MB, free: 7.469 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002497/0.5843, allocations: 94.5 kB / 473.2 MB, free: 7.367 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001956/0.5845, allocations: 84.89 kB / 473.3 MB, free: 7.281 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.17e-05/0.5846, allocations: 0 / 473.3 MB, free: 7.281 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003961/0.585, allocations: 228.7 kB / 473.5 MB, free: 7.035 MB / 363.1 MB Notification: Performance of pre-optimization done (n=13): time 1.954e-06/0.585, allocations: 0 / 473.5 MB, free: 7.035 MB / 363.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008927/0.5859, allocations: 309.1 kB / 473.8 MB, free: 6.727 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/0.586, allocations: 170.2 kB / 474 MB, free: 6.523 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008504/0.5869, allocations: 445 kB / 474.4 MB, free: 6.086 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 6.26e-05/0.5869, allocations: 33.64 kB / 474.5 MB, free: 6.047 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001155/0.5871, allocations: 159.9 kB / 474.6 MB, free: 5.891 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.237e-05/0.5872, allocations: 31.64 kB / 474.7 MB, free: 5.859 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.288e-05/0.5872, allocations: 8 kB / 474.7 MB, free: 5.852 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.5874, allocations: 314.8 kB / 475 MB, free: 5.535 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001806/0.5876, allocations: 63.97 kB / 475 MB, free: 5.473 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001629/0.5878, allocations: 55.98 kB / 475.1 MB, free: 5.418 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001599/0.5879, allocations: 55.83 kB / 475.2 MB, free: 5.363 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.5879, allocations: 0 / 475.2 MB, free: 5.363 MB / 363.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008035/0.5888, allocations: 281.4 kB / 475.4 MB, free: 5.082 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001169/0.5889, allocations: 122.8 kB / 475.5 MB, free: 4.938 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.5889, allocations: 0 / 475.5 MB, free: 4.938 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.5889, allocations: 4 kB / 475.5 MB, free: 4.934 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.292e-05/0.589, allocations: 0 / 475.5 MB, free: 4.934 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.589, allocations: 4 kB / 475.6 MB, free: 4.93 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002476/0.5893, allocations: 19.92 kB / 475.6 MB, free: 4.91 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001947/0.5895, allocations: 119.8 kB / 475.7 MB, free: 4.793 MB / 363.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,$PRE.iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.x,$PRE.iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.y_old,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * 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.0002499/0.5897, allocations: 247.9 kB / 475.9 MB, free: 4.52 MB / 363.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008447/0.5906, allocations: 337 kB / 476.3 MB, free: 4.184 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.006e-05/0.5907, allocations: 35.62 kB / 476.3 MB, free: 4.148 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002167/0.5909, allocations: 67.42 kB / 476.4 MB, free: 4.078 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.835e-06/0.5909, allocations: 4 kB / 476.4 MB, free: 4.074 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.5909, allocations: 4 kB / 476.4 MB, free: 4.07 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.591, allocations: 0 / 476.4 MB, free: 4.07 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001323/0.5923, allocations: 0.6862 MB / 477.1 MB, free: 3.34 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.5923, allocations: 3.984 kB / 477.1 MB, free: 3.336 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.055e-05/0.5923, allocations: 0 / 477.1 MB, free: 3.336 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.5923, allocations: 0 / 477.1 MB, free: 3.336 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.089e-05/0.5924, allocations: 19.98 kB / 477.1 MB, free: 3.316 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.5924, allocations: 192 / 477.1 MB, free: 3.316 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/0.5924, allocations: 4 kB / 477.1 MB, free: 3.312 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009045/0.5934, allocations: 431 kB / 477.5 MB, free: 2.875 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005377/0.5939, allocations: 256.4 kB / 477.8 MB, free: 2.605 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.362e-05/0.594, allocations: 8 kB / 477.8 MB, free: 2.598 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002745/0.5943, allocations: 15.98 kB / 477.8 MB, free: 2.582 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001809/0.5945, allocations: 39.88 kB / 477.8 MB, free: 2.543 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001962/0.5947, allocations: 123.8 kB / 477.9 MB, free: 2.422 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0006732/0.5954, allocations: 366.7 kB / 478.3 MB, free: 2.066 MB / 363.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.5954, allocations: 8 kB / 478.3 MB, free: 2.059 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.0004291/0.5959, allocations: 40 kB / 478.3 MB, free: 2.02 MB / 363.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.y_old,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,iNV3S.yy,iNV3S.nextstate,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.t_next,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,iNV3S.inertialDelaySensitive.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * 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 Backend phase and start with SimCode phase: time 0.001321/0.5972, allocations: 0.9774 MB / 479.3 MB, free: 1.016 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.000687/0.5979, allocations: 433.5 kB / 479.7 MB, free: 0.543 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.5979, allocations: 4 kB / 479.7 MB, free: 0.5391 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004399/0.5984, allocations: 380.6 kB / 480.1 MB, free: 124 kB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008356/0.5992, allocations: 101.7 kB / 480.2 MB, free: 20 kB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001839/0.6011, allocations: 0.6438 MB / 480.9 MB, free: 15.33 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005751/0.6017, allocations: 0.8139 MB / 481.7 MB, free: 14.49 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.35e-05/0.6017, allocations: 27.44 kB / 481.7 MB, free: 14.46 MB / 379.1 MB Notification: Performance of SimCode: time 1.172e-06/0.6018, allocations: 4 kB / 481.7 MB, free: 14.46 MB / 379.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.688/3.289, allocations: 4.384 MB / 486.1 MB, free: 10.07 MB / 379.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_INV3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_INV3S.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.INV3S_res.mat does not exist to compare? outputFormat=mat