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.00253/0.002529, allocations: 181.6 kB / 13.66 MB, free: 1.664 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.136/2.136, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001081/0.001081, allocations: 86.7 kB / 267.5 MB, free: 14.05 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.2832/0.2832, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.652e-05/3.668e-05, allocations: 8 kB / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1218, allocations: 58.85 MB / 484.2 MB, free: 12.39 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4919/0.6137, allocations: 86.36 MB / 0.5572 GB, free: 1.16 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002251/0.614, allocations: 62.2 kB / 0.5573 GB, free: 1.133 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01455/0.6286, allocations: 2.897 MB / 0.5601 GB, free: 14.63 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.6286, allocations: 0 / 0.5601 GB, free: 14.63 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.821e-05/0.6286, allocations: 4 kB / 0.5601 GB, free: 14.62 MB / 378.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.000938/0.6296, allocations: 426.2 kB / 0.5605 GB, free: 14.17 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.903e-05/0.6297, allocations: 8.031 kB / 0.5605 GB, free: 14.16 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.723e-05/0.6297, allocations: 42.11 kB / 0.5606 GB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.109e-05/0.6298, allocations: 11.91 kB / 0.5606 GB, free: 14.11 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004115/0.6302, allocations: 218.3 kB / 0.5608 GB, free: 13.86 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.452e-05/0.6303, allocations: 4 kB / 0.5608 GB, free: 13.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.635e-05/0.6303, allocations: 7.625 kB / 0.5608 GB, free: 13.86 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002232/0.6306, allocations: 81.09 kB / 0.5609 GB, free: 13.79 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.6306, allocations: 0 / 0.5609 GB, free: 13.79 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.032e-05/0.6306, allocations: 7.438 kB / 0.5609 GB, free: 13.78 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.832e-06/0.6306, allocations: 0 / 0.5609 GB, free: 13.78 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001178/0.6308, allocations: 34.94 kB / 0.5609 GB, free: 13.76 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008539/0.6316, allocations: 388 kB / 0.5613 GB, free: 13.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001612/0.6318, allocations: 49.55 kB / 0.5613 GB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.904e-05/0.6319, allocations: 23.67 kB / 0.5614 GB, free: 13.3 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.673e-05/0.6319, allocations: 0 / 0.5614 GB, free: 13.3 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001946/0.6321, allocations: 82.38 kB / 0.5614 GB, free: 13.21 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 2.144e-06/0.6321, allocations: 0 / 0.5614 GB, free: 13.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.000253/0.6324, allocations: 76.58 kB / 0.5615 GB, free: 13.14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.927e-05/0.6325, allocations: 55.41 kB / 0.5616 GB, free: 13.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001622/0.6326, allocations: 135.8 kB / 0.5617 GB, free: 12.95 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.61e-05/0.6327, allocations: 29.2 kB / 0.5617 GB, free: 12.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.913e-05/0.6328, allocations: 165.8 kB / 0.5619 GB, free: 12.76 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.674e-05/0.6328, allocations: 14.95 kB / 0.5619 GB, free: 12.75 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.895e-06/0.6328, allocations: 0 / 0.5619 GB, free: 12.75 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.633, allocations: 322.3 kB / 0.5622 GB, free: 12.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.82e-05/0.6331, allocations: 26.88 kB / 0.5622 GB, free: 12.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.273e-05/0.6332, allocations: 28.47 kB / 0.5622 GB, free: 12.38 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.709e-05/0.6332, allocations: 15.25 kB / 0.5623 GB, free: 12.37 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.6332, allocations: 0 / 0.5623 GB, free: 12.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001921/0.6334, allocations: 81.38 kB / 0.5623 GB, free: 12.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.409e-05/0.6335, allocations: 11.95 kB / 0.5624 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.6335, allocations: 0 / 0.5624 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.6336, allocations: 3.984 kB / 0.5624 GB, free: 12.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001855/0.6338, allocations: 23.97 kB / 0.5624 GB, free: 12.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.6338, allocations: 0 / 0.5624 GB, free: 12.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000175/0.634, allocations: 19.89 kB / 0.5624 GB, free: 12.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.71e-05/0.634, allocations: 11.11 kB / 0.5624 GB, free: 12.23 MB / 378.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,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.u,change.y) * Number of discrete 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 9.51e-05/0.6341, allocations: 104.3 kB / 0.5625 GB, free: 12.12 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.96e-05/0.6341, allocations: 19.34 kB / 0.5625 GB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.261e-05/0.6342, allocations: 11.33 kB / 0.5625 GB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.6342, allocations: 4 kB / 0.5625 GB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.6342, allocations: 0 / 0.5625 GB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.6343, allocations: 0 / 0.5625 GB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005464/0.6348, allocations: 357.8 kB / 0.5629 GB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.307e-06/0.6348, allocations: 0 / 0.5629 GB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000161/0.635, allocations: 19.95 kB / 0.5629 GB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.635, allocations: 0 / 0.5629 GB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.023e-05/0.635, allocations: 6.625 kB / 0.5629 GB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.58e-06/0.6351, allocations: 7.922 kB / 0.5629 GB, free: 11.69 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.6351, allocations: 4 kB / 0.5629 GB, free: 11.69 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003283/0.6354, allocations: 197.3 kB / 0.5631 GB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.663e-05/0.6355, allocations: 84.92 kB / 0.5632 GB, free: 11.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.435e-05/0.6355, allocations: 11.05 kB / 0.5632 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002434/0.6358, allocations: 28.03 kB / 0.5632 GB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.549e-05/0.6359, allocations: 11.97 kB / 0.5632 GB, free: 11.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.445e-05/0.6359, allocations: 7.375 kB / 0.5632 GB, free: 11.35 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001091/0.636, allocations: 106.2 kB / 0.5633 GB, free: 11.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.636, allocations: 0 / 0.5633 GB, free: 11.25 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003172/0.6364, allocations: 23.11 kB / 0.5634 GB, free: 11.23 MB / 378.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 (change.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * 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.0006558/0.637, allocations: 0.7271 MB / 0.5641 GB, free: 10.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001974/0.6372, allocations: 53.23 kB / 0.5641 GB, free: 10.46 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.6373, allocations: 0 / 0.5641 GB, free: 10.46 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.444e-05/0.6374, allocations: 30.86 kB / 0.5642 GB, free: 10.44 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003507/0.6377, allocations: 23.19 kB / 0.5642 GB, free: 10.42 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006852/0.6384, allocations: 199.1 kB / 0.5644 GB, free: 10.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003381/0.6388, allocations: 0.7042 MB / 0.5651 GB, free: 9.465 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.726e-05/0.6389, allocations: 29.86 kB / 0.5651 GB, free: 9.449 MB / 378.7 MB Notification: Performance of SimCode: time 1.072e-06/0.6389, allocations: 4 kB / 0.5651 GB, free: 9.445 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.477/3.116, allocations: 1.753 MB / 0.5668 GB, free: 7.711 MB / 378.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