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.002336/0.002336, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.114/2.114, allocations: 205.4 MB / 222.5 MB, free: 9.145 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.001745/0.001745, allocations: 101.6 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5176/0.5176, allocations: 43.55 MB / 362.7 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004989/0.0004989, allocations: 12 kB / 431.5 MB, free: 5.879 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1315, allocations: 58.84 MB / 490.3 MB, free: 10.95 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5105/0.6421, allocations: 86.44 MB / 0.5632 GB, free: 0 / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003062/0.6424, allocations: 65.23 kB / 0.5633 GB, free: 15.93 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01546/0.6579, allocations: 2.926 MB / 0.5661 GB, free: 13.04 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.658, allocations: 0 / 0.5661 GB, free: 13.04 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.639e-05/0.658, allocations: 4 kB / 0.5662 GB, free: 13.04 MB / 394.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.001058/0.6591, allocations: 438.8 kB / 0.5666 GB, free: 12.57 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.37e-05/0.6591, allocations: 8.031 kB / 0.5666 GB, free: 12.56 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.01e-05/0.6592, allocations: 43.61 kB / 0.5666 GB, free: 12.51 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.459e-05/0.6593, allocations: 11.34 kB / 0.5666 GB, free: 12.5 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004173/0.6597, allocations: 210.8 kB / 0.5668 GB, free: 12.25 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.942e-05/0.6598, allocations: 8 kB / 0.5668 GB, free: 12.25 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.397e-05/0.6598, allocations: 12 kB / 0.5668 GB, free: 12.23 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004636/0.6603, allocations: 109.6 kB / 0.567 GB, free: 12.12 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.6603, allocations: 0 / 0.567 GB, free: 12.12 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.188e-05/0.6603, allocations: 4 kB / 0.567 GB, free: 12.12 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.6604, allocations: 0 / 0.567 GB, free: 12.12 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002806/0.6606, allocations: 57 kB / 0.567 GB, free: 12.06 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009296/0.6616, allocations: 388.6 kB / 0.5674 GB, free: 11.63 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006149/0.6622, allocations: 117.4 kB / 0.5675 GB, free: 11.51 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.209e-05/0.6623, allocations: 0 / 0.5675 GB, free: 11.51 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005322/0.6628, allocations: 111.5 kB / 0.5676 GB, free: 11.39 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 2.444e-06/0.6628, allocations: 0 / 0.5676 GB, free: 11.39 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0008005/0.6636, allocations: 149.5 kB / 0.5677 GB, free: 11.24 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.796e-05/0.6637, allocations: 59.34 kB / 0.5678 GB, free: 11.17 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001907/0.6639, allocations: 137.5 kB / 0.5679 GB, free: 11.03 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.786e-05/0.664, allocations: 33.64 kB / 0.568 GB, free: 10.99 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.6641, allocations: 166.7 kB / 0.5681 GB, free: 10.82 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.492e-05/0.6641, allocations: 15.8 kB / 0.5681 GB, free: 10.81 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.717e-06/0.6641, allocations: 4 kB / 0.5681 GB, free: 10.8 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.6643, allocations: 314.8 kB / 0.5684 GB, free: 10.49 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002289/0.6645, allocations: 35.97 kB / 0.5685 GB, free: 10.45 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000236/0.6648, allocations: 64.5 kB / 0.5685 GB, free: 10.39 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002136/0.665, allocations: 31.98 kB / 0.5686 GB, free: 10.36 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.665, allocations: 4 kB / 0.5686 GB, free: 10.35 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0005266/0.6656, allocations: 121.5 kB / 0.5687 GB, free: 10.23 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/0.6656, allocations: 4 kB / 0.5687 GB, free: 10.22 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/0.6656, allocations: 3.953 kB / 0.5687 GB, free: 10.22 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.99e-05/0.6657, allocations: 7.969 kB / 0.5687 GB, free: 10.21 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001738/0.6659, allocations: 19.98 kB / 0.5687 GB, free: 10.19 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.6659, allocations: 2.5 kB / 0.5687 GB, free: 10.19 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000198/0.6661, allocations: 15.98 kB / 0.5687 GB, free: 10.18 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.68e-05/0.6661, allocations: 8 kB / 0.5687 GB, free: 10.17 MB / 394.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 () * 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.0001611/0.6663, allocations: 125.3 kB / 0.5689 GB, free: 10.04 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.099e-05/0.6663, allocations: 16.81 kB / 0.5689 GB, free: 10.02 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.767e-05/0.6664, allocations: 12.72 kB / 0.5689 GB, free: 10.01 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.6664, allocations: 3.953 kB / 0.5689 GB, free: 10.01 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.6664, allocations: 0 / 0.5689 GB, free: 10.01 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.6665, allocations: 4 kB / 0.5689 GB, free: 10 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009544/0.6674, allocations: 405.7 kB / 0.5693 GB, free: 9.555 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.389e-06/0.6675, allocations: 0 / 0.5693 GB, free: 9.555 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001582/0.6676, allocations: 16 kB / 0.5693 GB, free: 9.539 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.977e-06/0.6676, allocations: 3.953 kB / 0.5693 GB, free: 9.535 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.75e-05/0.6677, allocations: 7.984 kB / 0.5693 GB, free: 9.527 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.54e-06/0.6677, allocations: 4.281 kB / 0.5693 GB, free: 9.523 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.6677, allocations: 0 / 0.5693 GB, free: 9.523 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008111/0.6685, allocations: 263.2 kB / 0.5696 GB, free: 9.25 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.779e-05/0.6686, allocations: 88.98 kB / 0.5697 GB, free: 9.145 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.259e-05/0.6687, allocations: 3.953 kB / 0.5697 GB, free: 9.141 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002593/0.6689, allocations: 32.03 kB / 0.5697 GB, free: 9.109 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.697e-05/0.669, allocations: 11.98 kB / 0.5697 GB, free: 9.098 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.554e-05/0.6691, allocations: 7.922 kB / 0.5697 GB, free: 9.09 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000132/0.6692, allocations: 111.8 kB / 0.5698 GB, free: 8.98 MB / 394.7 MB Notification: Performance of sort global known variables: time 4e-07/0.6692, allocations: 0 / 0.5698 GB, free: 8.98 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003263/0.6696, allocations: 12 kB / 0.5698 GB, free: 8.969 MB / 394.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) * 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.001276/0.6708, allocations: 0.7944 MB / 0.5706 GB, free: 8.148 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005142/0.6714, allocations: 84.48 kB / 0.5707 GB, free: 8.066 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.151e-06/0.6714, allocations: 4.125 kB / 0.5707 GB, free: 8.062 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002585/0.6717, allocations: 51.91 kB / 0.5707 GB, free: 8.012 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000363/0.6721, allocations: 21.5 kB / 0.5708 GB, free: 7.992 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00222/0.6743, allocations: 0.8867 MB / 0.5716 GB, free: 7.059 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004133/0.6748, allocations: 0.7081 MB / 0.5723 GB, free: 6.324 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001044/0.6749, allocations: 27.44 kB / 0.5723 GB, free: 6.301 MB / 394.7 MB Notification: Performance of SimCode: time 1.593e-06/0.6749, allocations: 4 kB / 0.5723 GB, free: 6.297 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.541/3.216, allocations: 1.757 MB / 0.5741 GB, free: 4.547 MB / 394.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