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.001477/0.001477, 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 1.918/1.918, 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.001132/0.001132, allocations: 88.42 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.5079/0.5079, allocations: 43.55 MB / 362.7 MB, free: 51.97 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004603/0.0004603, allocations: 8 kB / 431.4 MB, free: 5.977 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1247, allocations: 58.85 MB / 490.2 MB, free: 11.04 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4544/0.5792, allocations: 84.88 MB / 0.5616 GB, free: 1.723 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002124/0.5795, allocations: 63.97 kB / 0.5617 GB, free: 1.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003205/0.5827, allocations: 0.9965 MB / 0.5626 GB, free: 0.6758 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.5828, allocations: 3.031 kB / 0.5626 GB, free: 0.6758 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.739e-06/0.5828, allocations: 0 / 0.5626 GB, free: 0.6758 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003164/0.5831, allocations: 338.8 kB / 0.563 GB, free: 308 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.5832, allocations: 8.031 kB / 0.563 GB, free: 300 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.855e-05/0.5832, allocations: 4 kB / 0.563 GB, free: 296 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001563/0.5834, allocations: 189.5 kB / 0.5632 GB, free: 72 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.739e-06/0.5834, allocations: 8 kB / 0.5632 GB, free: 64 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.609e-05/0.5834, allocations: 8 kB / 0.5632 GB, free: 56 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001279/0.5836, allocations: 45.69 kB / 0.5632 GB, free: 4 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.5836, allocations: 3.984 kB / 0.5632 GB, free: 0 / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.5836, allocations: 0 / 0.5632 GB, free: 0 / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.5837, allocations: 5.266 kB / 0.5632 GB, free: 15.99 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.419e-05/0.5837, allocations: 13.03 kB / 0.5632 GB, free: 15.98 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006258/0.5844, allocations: 292.6 kB / 0.5635 GB, free: 15.65 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.709e-05/0.5845, allocations: 22.58 kB / 0.5635 GB, free: 15.62 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.588e-06/0.5845, allocations: 0 / 0.5635 GB, free: 15.62 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001283/0.5846, allocations: 55.12 kB / 0.5636 GB, free: 15.55 MB / 394.7 MB Notification: Performance of pre-optimization done (n=3): time 1.683e-06/0.5846, allocations: 4 kB / 0.5636 GB, free: 15.55 MB / 394.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001785/0.5848, allocations: 53.64 kB / 0.5637 GB, free: 15.49 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.861e-05/0.5849, allocations: 55.41 kB / 0.5637 GB, free: 15.43 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.585, allocations: 108 kB / 0.5638 GB, free: 15.31 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/0.585, allocations: 25.7 kB / 0.5638 GB, free: 15.28 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.951e-05/0.5851, allocations: 162.4 kB / 0.564 GB, free: 15.12 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.135e-05/0.5852, allocations: 15.95 kB / 0.564 GB, free: 15.11 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.965e-06/0.5852, allocations: 4 kB / 0.564 GB, free: 15.1 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.5853, allocations: 314.8 kB / 0.5643 GB, free: 14.79 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.422e-05/0.5854, allocations: 4 kB / 0.5643 GB, free: 14.78 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.642e-05/0.5854, allocations: 21.72 kB / 0.5643 GB, free: 14.75 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.31e-05/0.5855, allocations: 8.281 kB / 0.5643 GB, free: 14.75 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.5855, allocations: 0 / 0.5643 GB, free: 14.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001126/0.5856, allocations: 57.61 kB / 0.5644 GB, free: 14.68 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.5856, allocations: 4 kB / 0.5644 GB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.5856, allocations: 0 / 0.5644 GB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.5857, allocations: 0 / 0.5644 GB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.607e-05/0.5857, allocations: 7.984 kB / 0.5644 GB, free: 14.67 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.5857, allocations: 7.984 kB / 0.5644 GB, free: 14.66 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.81e-05/0.5858, allocations: 4 kB / 0.5644 GB, free: 14.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.242e-06/0.5858, allocations: 0 / 0.5644 GB, free: 14.66 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: 2 ($whenCondition1,greaterEqualThreshold.y) * Number of discrete states: 0 () * Number of clocked 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 0.0001034/0.5859, allocations: 120.3 kB / 0.5645 GB, free: 14.54 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.191e-05/0.586, allocations: 7.906 kB / 0.5645 GB, free: 14.53 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.171e-05/0.586, allocations: 7.906 kB / 0.5645 GB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.586, allocations: 0 / 0.5645 GB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.586, allocations: 3.984 kB / 0.5646 GB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.586, allocations: 3.953 kB / 0.5646 GB, free: 14.51 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004096/0.5865, allocations: 299.5 kB / 0.5648 GB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.5865, allocations: 0 / 0.5648 GB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.795e-05/0.5865, allocations: 4 kB / 0.5648 GB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.5866, allocations: 3.984 kB / 0.5648 GB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.207e-05/0.5866, allocations: 0.875 kB / 0.5648 GB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.5866, allocations: 7.016 kB / 0.5649 GB, free: 14.15 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.5866, allocations: 0 / 0.5649 GB, free: 14.15 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001944/0.5868, allocations: 151.5 kB / 0.565 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.006e-05/0.5869, allocations: 85.05 kB / 0.5651 GB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.821e-05/0.5869, allocations: 0 / 0.5651 GB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.755e-05/0.587, allocations: 1.438 kB / 0.5651 GB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.961e-05/0.587, allocations: 11.94 kB / 0.5651 GB, free: 13.88 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.562e-06/0.5871, allocations: 0 / 0.5651 GB, free: 13.88 MB / 394.7 MB Notification: Performance of sorting global known variables: time 7.933e-05/0.5871, allocations: 99.2 kB / 0.5652 GB, free: 13.78 MB / 394.7 MB Notification: Performance of sort global known variables: time 4e-07/0.5872, allocations: 0 / 0.5652 GB, free: 13.78 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002795/0.5874, allocations: 8 kB / 0.5652 GB, free: 13.77 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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.0001399/0.5876, allocations: 95.31 kB / 0.5653 GB, free: 13.66 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001118/0.5877, allocations: 23.92 kB / 0.5653 GB, free: 13.64 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.5877, allocations: 0 / 0.5653 GB, free: 13.64 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.776e-05/0.5878, allocations: 4 kB / 0.5653 GB, free: 13.64 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002468/0.588, allocations: 8 kB / 0.5653 GB, free: 13.63 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004203/0.5885, allocations: 179.5 kB / 0.5655 GB, free: 13.43 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002889/0.5888, allocations: 0.6965 MB / 0.5662 GB, free: 12.71 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.389e-05/0.5888, allocations: 7.438 kB / 0.5662 GB, free: 12.7 MB / 394.7 MB Notification: Performance of SimCode: time 2.385e-06/0.5888, allocations: 0 / 0.5662 GB, free: 12.7 MB / 394.7 MB Notification: Performance of Templates: time 0.002874/0.5917, allocations: 0.7294 MB / 0.5669 GB, free: 11.98 MB / 394.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