Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_LimResetIntegrator",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.001643/0.001648, allocations: 189.2 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.419/2.419, 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.001221/0.001221, allocations: 94.86 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3128/0.3128, allocations: 43.56 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004953/0.0004958, allocations: 16 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1334, allocations: 58.86 MB / 490.3 MB, free: 9.246 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002663/0.1362, allocations: 1.311 MB / 491.6 MB, free: 7.918 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001489/0.1377, allocations: 0.5468 MB / 492.2 MB, free: 7.363 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001368/0.1379, allocations: 3.938 kB / 492.2 MB, free: 7.359 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 3.317e-05/0.138, allocations: 7.922 kB / 492.2 MB, free: 7.352 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001271/0.1381, allocations: 11.98 kB / 492.2 MB, free: 7.34 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004879/0.1386, allocations: 71.84 kB / 492.3 MB, free: 7.27 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002272/0.1389, allocations: 79.78 kB / 492.3 MB, free: 7.191 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001342/0.139, allocations: 19.98 kB / 492.4 MB, free: 7.172 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001142/0.1392, allocations: 35.91 kB / 492.4 MB, free: 7.137 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.482e-05/0.1393, allocations: 35.77 kB / 492.4 MB, free: 7.102 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.636e-05/0.1393, allocations: 4 kB / 492.4 MB, free: 7.098 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.08e-05/0.1393, allocations: 4 kB / 492.4 MB, free: 7.094 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 2.878e-05/0.1394, allocations: 11.98 kB / 492.5 MB, free: 7.082 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 6.176e-05/0.1394, allocations: 37.64 kB / 492.5 MB, free: 7.039 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000135/0.1396, allocations: 60.09 kB / 492.5 MB, free: 6.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1396, allocations: 0 / 492.5 MB, free: 6.98 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.1396, allocations: 0 / 492.5 MB, free: 6.98 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.1396, allocations: 0 / 492.5 MB, free: 6.98 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0008875/0.1405, allocations: 403.1 kB / 492.9 MB, free: 6.539 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.201e-05/0.1406, allocations: 11.97 kB / 493 MB, free: 6.527 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.361e-05/0.1407, allocations: 38.56 kB / 493 MB, free: 6.48 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.13e-05/0.1407, allocations: 19.7 kB / 493 MB, free: 6.461 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002829/0.141, allocations: 191 kB / 493.2 MB, free: 6.234 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.126e-05/0.1411, allocations: 11.94 kB / 493.2 MB, free: 6.223 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.787e-05/0.1411, allocations: 11.98 kB / 493.2 MB, free: 6.211 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004676/0.1416, allocations: 113.3 kB / 493.3 MB, free: 6.098 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.1416, allocations: 4 kB / 493.3 MB, free: 6.094 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.694e-05/0.1417, allocations: 0 / 493.3 MB, free: 6.094 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.1417, allocations: 0 / 493.3 MB, free: 6.094 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002979/0.142, allocations: 59.91 kB / 493.4 MB, free: 6.035 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001099/0.1431, allocations: 404.4 kB / 493.8 MB, free: 5.59 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006241/0.1438, allocations: 126.4 kB / 493.9 MB, free: 5.457 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.945e-05/0.1438, allocations: 0 / 493.9 MB, free: 5.457 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004635/0.1443, allocations: 99.56 kB / 494 MB, free: 5.348 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 2.444e-06/0.1443, allocations: 4 kB / 494 MB, free: 5.344 MB / 330.7 MB Notification: Performance of matching and sorting (n=7): time 0.0008063/0.1451, allocations: 157.5 kB / 494.2 MB, free: 5.184 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.999e-05/0.1452, allocations: 55.41 kB / 494.2 MB, free: 5.117 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002053/0.1454, allocations: 150.3 kB / 494.4 MB, free: 4.961 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.76e-05/0.1455, allocations: 29.7 kB / 494.4 MB, free: 4.926 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/0.1456, allocations: 162.8 kB / 494.6 MB, free: 4.766 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.715e-05/0.1456, allocations: 15.72 kB / 494.6 MB, free: 4.75 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.745e-06/0.1457, allocations: 0 / 494.6 MB, free: 4.75 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001871/0.1458, allocations: 318.8 kB / 494.9 MB, free: 4.43 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002236/0.1461, allocations: 39.98 kB / 494.9 MB, free: 4.391 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002428/0.1463, allocations: 53.69 kB / 495 MB, free: 4.332 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002177/0.1466, allocations: 39.92 kB / 495 MB, free: 4.293 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.1466, allocations: 4 kB / 495 MB, free: 4.289 MB / 330.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005358/0.1471, allocations: 129.7 kB / 495.1 MB, free: 4.156 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.318e-05/0.1472, allocations: 7.438 kB / 495.2 MB, free: 4.152 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/0.1472, allocations: 4 kB / 495.2 MB, free: 4.148 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.24e-05/0.1472, allocations: 0 / 495.2 MB, free: 4.148 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001816/0.1474, allocations: 23.98 kB / 495.2 MB, free: 4.125 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.1474, allocations: 0 / 495.2 MB, free: 4.125 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000186/0.1476, allocations: 27.97 kB / 495.2 MB, free: 4.098 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.464e-05/0.1477, allocations: 4 kB / 495.2 MB, free: 4.094 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,integrator.reset,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001526/0.1478, allocations: 121.8 kB / 495.3 MB, free: 3.965 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.637e-05/0.1479, allocations: 15.86 kB / 495.3 MB, free: 3.949 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.806e-05/0.1479, allocations: 16.7 kB / 495.4 MB, free: 3.93 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.148, allocations: 0 / 495.4 MB, free: 3.93 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.148, allocations: 0 / 495.4 MB, free: 3.93 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.148, allocations: 4 kB / 495.4 MB, free: 3.926 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009133/0.1489, allocations: 394.5 kB / 495.7 MB, free: 3.484 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/0.149, allocations: 0 / 495.7 MB, free: 3.484 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001615/0.1491, allocations: 27.86 kB / 495.8 MB, free: 3.457 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.903e-06/0.1491, allocations: 0 / 495.8 MB, free: 3.457 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/0.1492, allocations: 0 / 495.8 MB, free: 3.457 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.1492, allocations: 0 / 495.8 MB, free: 3.457 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.1492, allocations: 4 kB / 495.8 MB, free: 3.453 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008432/0.1501, allocations: 255.3 kB / 496 MB, free: 3.188 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.178e-05/0.1502, allocations: 93.03 kB / 496.1 MB, free: 3.078 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.093e-05/0.1502, allocations: 4.062 kB / 496.1 MB, free: 3.074 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002464/0.1505, allocations: 19.98 kB / 496.1 MB, free: 3.055 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.583e-05/0.1506, allocations: 15.97 kB / 496.2 MB, free: 3.039 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.686e-05/0.1506, allocations: 4 kB / 496.2 MB, free: 3.035 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001332/0.1507, allocations: 116.5 kB / 496.3 MB, free: 2.922 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.1507, allocations: 0 / 496.3 MB, free: 2.922 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003313/0.1511, allocations: 23.91 kB / 496.3 MB, free: 2.898 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.001253/0.1524, allocations: 0.7908 MB / 497.1 MB, free: 2.082 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005382/0.1529, allocations: 99.94 kB / 497.2 MB, free: 1.984 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.153, allocations: 0 / 497.2 MB, free: 1.984 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000247/0.1532, allocations: 39.98 kB / 497.2 MB, free: 1.945 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003895/0.1536, allocations: 28.25 kB / 497.3 MB, free: 1.918 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002286/0.1559, allocations: 0.8882 MB / 498.1 MB, free: 0.9766 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003714/0.1564, allocations: 0.7042 MB / 498.8 MB, free: 252 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.1565, allocations: 35.36 kB / 498.9 MB, free: 216 kB / 330.7 MB Notification: Performance of SimCode: time 1.292e-06/0.1565, allocations: 7.938 kB / 498.9 MB, free: 208 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.643/2.799, allocations: 1.745 MB / 0.4889 GB, free: 14.45 MB / 346.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator_res.mat does not exist to compare? outputFormat=mat