Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008836/0.0008836, allocations: 80.8 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009435/0.0009435, allocations: 174.8 kB / 24.92 MB, free: 8.266 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9548/0.9548, allocations: 177.1 MB / 205.3 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2718/0.2718, allocations: 32.81 MB / 294.6 MB, free: 1.238 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.192e-06/1.192e-06, allocations: 3.938 kB / 323.2 MB, free: 9.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.279e-05/2.399e-05, allocations: 3.188 kB / 323.2 MB, free: 9.746 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001503/0.001527, allocations: 0.8344 MB / 324 MB, free: 8.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001837/0.001711, allocations: 39.83 kB / 324.1 MB, free: 8.871 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.943e-05/0.00177, allocations: 4 kB / 324.1 MB, free: 8.867 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.646e-05/0.001866, allocations: 11.88 kB / 324.1 MB, free: 8.855 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 1.414e-05/0.001881, allocations: 0 / 324.1 MB, free: 8.855 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 8.582e-05/0.001966, allocations: 15.97 kB / 324.1 MB, free: 8.84 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.6e-05/0.002042, allocations: 35.92 kB / 324.1 MB, free: 8.805 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.909e-05/0.002122, allocations: 24.53 kB / 324.2 MB, free: 8.781 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.894e-05/0.00216, allocations: 15.98 kB / 324.2 MB, free: 8.766 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.474e-05/0.002195, allocations: 4 kB / 324.2 MB, free: 8.762 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.762e-05/0.002213, allocations: 4 kB / 324.2 MB, free: 8.758 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.774e-06/0.002221, allocations: 3.938 kB / 324.2 MB, free: 8.754 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.956e-05/0.00224, allocations: 11.98 kB / 324.2 MB, free: 8.742 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.679e-05/0.002257, allocations: 11.98 kB / 324.2 MB, free: 8.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.345e-05/0.00234, allocations: 23.8 kB / 324.2 MB, free: 8.707 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.002344, allocations: 4 kB / 324.2 MB, free: 8.703 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.22e-07/0.002344, allocations: 0 / 324.2 MB, free: 8.703 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.667e-06/0.002348, allocations: 4 kB / 324.2 MB, free: 8.699 MB / 298.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.0002722/0.00262, allocations: 250.1 kB / 324.5 MB, free: 8.43 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.921e-05/0.002649, allocations: 8.031 kB / 324.5 MB, free: 8.422 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.303e-05/0.002673, allocations: 8.922 kB / 324.5 MB, free: 8.414 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001144/0.002787, allocations: 125.7 kB / 324.6 MB, free: 8.266 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.644e-06/0.002795, allocations: 4.359 kB / 324.6 MB, free: 8.262 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.779e-05/0.002812, allocations: 8.375 kB / 324.6 MB, free: 8.254 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.927e-05/0.002872, allocations: 46.17 kB / 324.7 MB, free: 8.203 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.919e-06/0.002877, allocations: 192 / 324.7 MB, free: 8.203 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.123e-06/0.002884, allocations: 12.31 kB / 324.7 MB, free: 8.191 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.002887, allocations: 384 / 324.7 MB, free: 8.191 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.887e-05/0.002906, allocations: 11.94 kB / 324.7 MB, free: 8.18 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000255/0.003161, allocations: 180.2 kB / 324.9 MB, free: 7.988 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.562e-05/0.003197, allocations: 18.58 kB / 324.9 MB, free: 7.961 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.608e-06/0.003207, allocations: 8.922 kB / 324.9 MB, free: 7.949 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.48e-06/0.003212, allocations: 0 / 324.9 MB, free: 7.949 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.119e-05/0.003263, allocations: 55.33 kB / 325 MB, free: 7.883 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 6.51e-07/0.003264, allocations: 4 kB / 325 MB, free: 7.879 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 7.994e-05/0.003344, allocations: 45.62 kB / 325 MB, free: 7.828 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.684e-05/0.003371, allocations: 51.41 kB / 325.1 MB, free: 7.766 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.303e-05/0.003424, allocations: 114.8 kB / 325.2 MB, free: 7.641 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.078e-05/0.003434, allocations: 25.7 kB / 325.2 MB, free: 7.609 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.236e-05/0.003467, allocations: 88.09 kB / 325.3 MB, free: 7.52 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.2e-05/0.003479, allocations: 11.95 kB / 325.3 MB, free: 7.508 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.418e-05/0.003503, allocations: 25.69 kB / 325.3 MB, free: 7.477 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.903e-05/0.003572, allocations: 310.8 kB / 325.6 MB, free: 7.164 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.495e-06/0.00358, allocations: 4 kB / 325.6 MB, free: 7.16 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.382e-05/0.003593, allocations: 13.72 kB / 325.6 MB, free: 7.141 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.569e-05/0.003619, allocations: 29.62 kB / 325.7 MB, free: 7.105 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.003622, allocations: 4 kB / 325.7 MB, free: 7.102 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 4.688e-05/0.003669, allocations: 49.56 kB / 325.7 MB, free: 7.047 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.141e-05/0.00368, allocations: 8 kB / 325.7 MB, free: 7.039 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.888e-06/0.003684, allocations: 0 / 325.7 MB, free: 7.039 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.939e-06/0.003694, allocations: 0 / 325.7 MB, free: 7.039 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.537e-05/0.003719, allocations: 4 kB / 325.7 MB, free: 7.035 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.335e-06/0.003722, allocations: 0 / 325.7 MB, free: 7.035 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.797e-05/0.00374, allocations: 4 kB / 325.7 MB, free: 7.031 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.737e-06/0.003743, allocations: 3.984 kB / 325.7 MB, free: 7.027 MB / 298.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 (greaterEqualThreshold.y,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.823e-05/0.003792, allocations: 109.9 kB / 325.8 MB, free: 6.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.973e-06/0.003799, allocations: 7.938 kB / 325.9 MB, free: 6.902 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.948e-05/0.003818, allocations: 8 kB / 325.9 MB, free: 6.891 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.003819, allocations: 0 / 325.9 MB, free: 6.891 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-06/0.003822, allocations: 4 kB / 325.9 MB, free: 6.887 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.524e-06/0.003824, allocations: 0 / 325.9 MB, free: 6.887 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001555/0.00398, allocations: 199.3 kB / 326.1 MB, free: 6.668 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.003981, allocations: 7.875 kB / 326.1 MB, free: 6.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.645e-05/0.003998, allocations: 7.984 kB / 326.1 MB, free: 6.652 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.574e-06/0.004, allocations: 384 / 326.1 MB, free: 6.652 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.544e-06/0.004008, allocations: 4 kB / 326.1 MB, free: 6.648 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.004009, allocations: 0 / 326.1 MB, free: 6.648 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.00401, allocations: 0 / 326.1 MB, free: 6.648 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.495e-05/0.004095, allocations: 147.5 kB / 326.2 MB, free: 6.488 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.031e-06/0.004101, allocations: 3.938 kB / 326.2 MB, free: 6.484 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.806e-06/0.00411, allocations: 7.984 kB / 326.2 MB, free: 6.477 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.728e-05/0.004137, allocations: 4 kB / 326.2 MB, free: 6.473 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.811e-05/0.004155, allocations: 0 / 326.2 MB, free: 6.473 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-06/0.004158, allocations: 0 / 326.2 MB, free: 6.473 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.214e-05/0.00417, allocations: 16.84 kB / 326.3 MB, free: 6.453 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.00417, allocations: 0 / 326.3 MB, free: 6.453 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001105/0.004281, allocations: 15.98 kB / 326.3 MB, free: 6.438 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.067e-05/0.004342, allocations: 72.42 kB / 326.3 MB, free: 6.359 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 5.468e-05/0.004396, allocations: 20.83 kB / 326.4 MB, free: 6.336 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.004398, allocations: 0 / 326.4 MB, free: 6.336 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.266e-05/0.004411, allocations: 16.8 kB / 326.4 MB, free: 6.316 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001195/0.004531, allocations: 12.59 kB / 326.4 MB, free: 6.305 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000197/0.004728, allocations: 141.8 kB / 326.5 MB, free: 6.141 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.888e-05/0.004756, allocations: 55.36 kB / 326.6 MB, free: 6.066 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.669e-05/0.004773, allocations: 4.047 kB / 326.6 MB, free: 6.062 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.468e-05/0.004808, allocations: 59.38 kB / 326.6 MB, free: 6.004 MB / 298.7 MB Notification: Performance of SimCode: time 6.61e-07/0.004808, allocations: 0 / 326.6 MB, free: 6.004 MB / 298.7 MB Notification: Performance of Templates: time 0.00191/0.006719, allocations: 0.5471 MB / 327.2 MB, free: 5.469 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8248366038315]