Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.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: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001489/0.001489, allocations: 181.3 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.001/2.001, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.00109/0.00109, allocations: 82.66 kB / 267.5 MB, free: 14.04 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.2847/0.2847, allocations: 43.5 MB / 359.1 MB, free: 12.22 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.422e-05/3.448e-05, allocations: 11.98 kB / 425.3 MB, free: 23.37 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1156, allocations: 58.86 MB / 484.1 MB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4707/0.5864, allocations: 84.79 MB / 0.5556 GB, free: 2.781 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002099/0.5867, allocations: 65.25 kB / 0.5557 GB, free: 2.75 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003207/0.5899, allocations: 0.9909 MB / 0.5566 GB, free: 1.871 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.5899, allocations: 0 / 0.5566 GB, free: 1.871 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.045e-05/0.59, allocations: 0 / 0.5566 GB, free: 1.871 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0002793/0.5902, allocations: 329.9 kB / 0.5569 GB, free: 1.508 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.5903, allocations: 12.03 kB / 0.557 GB, free: 1.496 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.796e-05/0.5904, allocations: 3.906 kB / 0.557 GB, free: 1.492 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001702/0.5905, allocations: 187.1 kB / 0.5571 GB, free: 1.273 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.5906, allocations: 0 / 0.5571 GB, free: 1.273 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.46e-05/0.5906, allocations: 7 kB / 0.5571 GB, free: 1.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000123/0.5907, allocations: 44.77 kB / 0.5572 GB, free: 1.227 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.5907, allocations: 0 / 0.5572 GB, free: 1.227 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.4e-05/0.5908, allocations: 0 / 0.5572 GB, free: 1.227 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-06/0.5908, allocations: 0 / 0.5572 GB, free: 1.227 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.491e-05/0.5908, allocations: 11.38 kB / 0.5572 GB, free: 1.219 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005213/0.5914, allocations: 301.3 kB / 0.5575 GB, free: 0.8906 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.299e-05/0.5914, allocations: 26.02 kB / 0.5575 GB, free: 0.8594 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.199e-05/0.5915, allocations: 7.297 kB / 0.5575 GB, free: 0.8516 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.795e-06/0.5915, allocations: 0 / 0.5575 GB, free: 0.8516 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.223e-05/0.5916, allocations: 65.66 kB / 0.5576 GB, free: 0.7812 MB / 362.7 MB Notification: Performance of pre-optimization done (n=3): time 1.593e-06/0.5916, allocations: 0 / 0.5576 GB, free: 0.7812 MB / 362.7 MB Notification: Performance of matching and sorting (n=3): time 0.000135/0.5918, allocations: 52.86 kB / 0.5576 GB, free: 0.7266 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.371e-05/0.5918, allocations: 51.41 kB / 0.5577 GB, free: 0.6641 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.347e-05/0.5919, allocations: 111.8 kB / 0.5578 GB, free: 0.5508 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.146e-05/0.5919, allocations: 25.7 kB / 0.5578 GB, free: 0.5195 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.823e-05/0.592, allocations: 161.5 kB / 0.558 GB, free: 376 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.532e-05/0.592, allocations: 11.84 kB / 0.558 GB, free: 364 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.316e-06/0.592, allocations: 0 / 0.558 GB, free: 364 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.441e-05/0.5921, allocations: 310.8 kB / 0.5583 GB, free: 44 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.056e-05/0.5921, allocations: 7.25 kB / 0.5583 GB, free: 40 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.139e-05/0.5921, allocations: 21.09 kB / 0.5583 GB, free: 16 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.734e-05/0.5922, allocations: 11.92 kB / 0.5583 GB, free: 4 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.5922, allocations: 0 / 0.5583 GB, free: 4 kB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000128/0.5923, allocations: 52.45 kB / 0.5584 GB, free: 15.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.5924, allocations: 8 kB / 0.5584 GB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.5924, allocations: 0 / 0.5584 GB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.5924, allocations: 4.031 kB / 0.5584 GB, free: 15.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.278e-05/0.5925, allocations: 7.938 kB / 0.5584 GB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.492e-05/0.5925, allocations: 7.938 kB / 0.5584 GB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.155e-05/0.5925, allocations: 7.906 kB / 0.5584 GB, free: 15.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.632e-06/0.5926, allocations: 0 / 0.5584 GB, free: 15.92 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: 2 ($whenCondition1,greaterEqualThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 7.219e-05/0.5926, allocations: 104.4 kB / 0.5585 GB, free: 15.81 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.52e-05/0.5927, allocations: 8.031 kB / 0.5585 GB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.332e-05/0.5927, allocations: 8.016 kB / 0.5585 GB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.5927, allocations: 4 kB / 0.5585 GB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.5927, allocations: 0 / 0.5585 GB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.5928, allocations: 3.953 kB / 0.5585 GB, free: 15.78 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003849/0.5932, allocations: 294.9 kB / 0.5588 GB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/0.5932, allocations: 3.984 kB / 0.5588 GB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.645e-05/0.5932, allocations: 0 / 0.5588 GB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.5933, allocations: 0 / 0.5588 GB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/0.5933, allocations: 4 kB / 0.5588 GB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.5933, allocations: 7.953 kB / 0.5588 GB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.5933, allocations: 0 / 0.5588 GB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001745/0.5935, allocations: 147.8 kB / 0.5589 GB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.297e-05/0.5935, allocations: 81.02 kB / 0.559 GB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.932e-05/0.5936, allocations: 4.031 kB / 0.559 GB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.189e-05/0.5937, allocations: 7.172 kB / 0.559 GB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.258e-05/0.5937, allocations: 4.234 kB / 0.559 GB, free: 15.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.303e-05/0.5938, allocations: 11.94 kB / 0.5591 GB, free: 15.16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.034e-05/0.5939, allocations: 94.91 kB / 0.5591 GB, free: 15.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.5939, allocations: 0 / 0.5591 GB, free: 15.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002783/0.5942, allocations: 8 kB / 0.5592 GB, free: 15.06 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0001337/0.5943, allocations: 98.55 kB / 0.5592 GB, free: 14.96 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 9.764e-05/0.5944, allocations: 15.31 kB / 0.5593 GB, free: 14.95 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.5944, allocations: 0 / 0.5593 GB, free: 14.95 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.914e-05/0.5945, allocations: 7.938 kB / 0.5593 GB, free: 14.94 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002465/0.5947, allocations: 21.5 kB / 0.5593 GB, free: 14.93 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002995/0.595, allocations: 115 kB / 0.5594 GB, free: 14.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002921/0.5953, allocations: 0.6887 MB / 0.5601 GB, free: 14.08 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.881e-05/0.5954, allocations: 11.44 kB / 0.5601 GB, free: 14.07 MB / 378.7 MB Notification: Performance of SimCode: time 9.52e-07/0.5954, allocations: 0 / 0.5601 GB, free: 14.07 MB / 378.7 MB Notification: Performance of Templates: time 0.002664/0.5981, allocations: 0.7234 MB / 0.5608 GB, free: 13.36 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches