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.001349/0.001349, allocations: 80.8 kB / 21.49 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.001409/0.001409, allocations: 169.1 kB / 24.91 MB, free: 9.199 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 1.014/1.014, allocations: 177.1 MB / 205.3 MB, free: 5.488 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.2499/0.2499, allocations: 32.81 MB / 294.6 MB, free: 1.242 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.553e-06/1.553e-06, allocations: 0 / 323.3 MB, free: 9.668 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.108e-05/2.263e-05, allocations: 2.312 kB / 323.3 MB, free: 9.664 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002131/0.002153, allocations: 0.8741 MB / 324.1 MB, free: 8.793 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002203/0.002373, allocations: 43.83 kB / 324.2 MB, free: 8.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.104e-05/0.002444, allocations: 4 kB / 324.2 MB, free: 8.746 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001235/0.002568, allocations: 11.86 kB / 324.2 MB, free: 8.734 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 1.983e-05/0.002588, allocations: 0 / 324.2 MB, free: 8.734 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001184/0.002706, allocations: 15.98 kB / 324.2 MB, free: 8.719 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001036/0.00281, allocations: 39.86 kB / 324.2 MB, free: 8.68 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.769e-05/0.002907, allocations: 19.97 kB / 324.3 MB, free: 8.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.834e-05/0.002956, allocations: 11.98 kB / 324.3 MB, free: 8.648 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.944e-05/0.003005, allocations: 15.92 kB / 324.3 MB, free: 8.633 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.869e-05/0.003024, allocations: 4 kB / 324.3 MB, free: 8.629 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.508e-06/0.003033, allocations: 0 / 324.3 MB, free: 8.629 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.148e-05/0.003055, allocations: 7.938 kB / 324.3 MB, free: 8.621 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.337e-05/0.003078, allocations: 11.98 kB / 324.3 MB, free: 8.609 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.959e-05/0.003178, allocations: 27.84 kB / 324.3 MB, free: 8.582 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.003181, allocations: 4 kB / 324.3 MB, free: 8.578 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.003181, allocations: 0 / 324.3 MB, free: 8.578 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.158e-06/0.003185, allocations: 4 kB / 324.3 MB, free: 8.574 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.0003338/0.003519, allocations: 246.1 kB / 324.6 MB, free: 8.309 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.00356, allocations: 8.031 kB / 324.6 MB, free: 8.301 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.232e-05/0.003592, allocations: 8.938 kB / 324.6 MB, free: 8.293 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001498/0.003742, allocations: 133.6 kB / 324.7 MB, free: 8.137 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.181e-05/0.003754, allocations: 4.375 kB / 324.7 MB, free: 8.133 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.695e-05/0.003771, allocations: 12.25 kB / 324.7 MB, free: 8.121 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.368e-05/0.003844, allocations: 42.25 kB / 324.8 MB, free: 8.074 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.003851, allocations: 192 / 324.8 MB, free: 8.074 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.702e-06/0.003858, allocations: 4.375 kB / 324.8 MB, free: 8.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.72e-06/0.003864, allocations: 384 / 324.8 MB, free: 8.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.689e-05/0.003891, allocations: 15.92 kB / 324.8 MB, free: 8.055 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000339/0.00423, allocations: 168.8 kB / 325 MB, free: 7.875 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.162e-05/0.004271, allocations: 22.56 kB / 325 MB, free: 7.844 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.447e-05/0.004286, allocations: 12.92 kB / 325 MB, free: 7.828 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.871e-06/0.004292, allocations: 0 / 325 MB, free: 7.828 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.225e-05/0.004354, allocations: 51.34 kB / 325.1 MB, free: 7.766 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.004355, allocations: 0 / 325.1 MB, free: 7.766 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 9.445e-05/0.004449, allocations: 41.62 kB / 325.1 MB, free: 7.719 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.56e-05/0.004485, allocations: 55.41 kB / 325.2 MB, free: 7.652 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.41e-05/0.004549, allocations: 114.8 kB / 325.3 MB, free: 7.527 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.513e-05/0.004564, allocations: 33.7 kB / 325.3 MB, free: 7.488 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.838e-05/0.004603, allocations: 84.09 kB / 325.4 MB, free: 7.402 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.473e-05/0.004617, allocations: 7.953 kB / 325.4 MB, free: 7.395 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.129e-05/0.004659, allocations: 25.69 kB / 325.4 MB, free: 7.363 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.592e-05/0.004745, allocations: 310.8 kB / 325.7 MB, free: 7.051 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.806e-06/0.004753, allocations: 4 kB / 325.7 MB, free: 7.047 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.222e-05/0.004776, allocations: 21.7 kB / 325.7 MB, free: 7.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.373e-05/0.004809, allocations: 25.64 kB / 325.8 MB, free: 6.988 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.004811, allocations: 4 kB / 325.8 MB, free: 6.984 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.344e-05/0.004874, allocations: 45.84 kB / 325.8 MB, free: 6.934 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.004889, allocations: 8 kB / 325.8 MB, free: 6.926 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.004893, allocations: 48 / 325.8 MB, free: 6.926 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.004909, allocations: 3.984 kB / 325.8 MB, free: 6.922 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.103e-05/0.00494, allocations: 7.984 kB / 325.8 MB, free: 6.914 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.695e-06/0.004943, allocations: 0 / 325.8 MB, free: 6.914 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.361e-05/0.004966, allocations: 4 kB / 325.8 MB, free: 6.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.216e-06/0.004969, allocations: 0 / 325.8 MB, free: 6.91 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 6.232e-05/0.005032, allocations: 113.9 kB / 326 MB, free: 6.789 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.889e-06/0.005042, allocations: 7.938 kB / 326 MB, free: 6.781 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.955e-05/0.005061, allocations: 4 kB / 326 MB, free: 6.777 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.005064, allocations: 4 kB / 326 MB, free: 6.773 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.005067, allocations: 7.922 kB / 326 MB, free: 6.766 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.00507, allocations: 0 / 326 MB, free: 6.766 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001976/0.005267, allocations: 202.7 kB / 326.2 MB, free: 6.543 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.00527, allocations: 7.938 kB / 326.2 MB, free: 6.535 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.09e-05/0.005291, allocations: 0 / 326.2 MB, free: 6.535 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.005293, allocations: 0 / 326.2 MB, free: 6.535 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.755e-06/0.0053, allocations: 0 / 326.2 MB, free: 6.535 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.005304, allocations: 12 kB / 326.2 MB, free: 6.523 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.005305, allocations: 0 / 326.2 MB, free: 6.523 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001063/0.005411, allocations: 139.5 kB / 326.3 MB, free: 6.371 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.05e-05/0.005422, allocations: 7.938 kB / 326.3 MB, free: 6.363 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.839e-06/0.005431, allocations: 0 / 326.3 MB, free: 6.363 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.603e-05/0.005477, allocations: 0 / 326.3 MB, free: 6.363 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.473e-05/0.005502, allocations: 4 kB / 326.3 MB, free: 6.359 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-06/0.005507, allocations: 4 kB / 326.3 MB, free: 6.355 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.614e-05/0.005523, allocations: 12.84 kB / 326.4 MB, free: 6.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.005523, allocations: 0 / 326.4 MB, free: 6.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001228/0.005646, allocations: 7.984 kB / 326.4 MB, free: 6.332 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.284e-05/0.005709, allocations: 80.41 kB / 326.4 MB, free: 6.246 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 5.832e-05/0.005767, allocations: 20.78 kB / 326.5 MB, free: 6.223 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.005771, allocations: 8 kB / 326.5 MB, free: 6.215 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.588e-05/0.005787, allocations: 12.86 kB / 326.5 MB, free: 6.199 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001887/0.005976, allocations: 11.92 kB / 326.5 MB, free: 6.188 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000269/0.006245, allocations: 137.8 kB / 326.6 MB, free: 6.027 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.112e-05/0.006286, allocations: 59.34 kB / 326.7 MB, free: 5.949 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.38e-05/0.00631, allocations: 0 / 326.7 MB, free: 5.949 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.198e-05/0.006352, allocations: 59.44 kB / 326.7 MB, free: 5.891 MB / 298.7 MB Notification: Performance of SimCode: time 5.01e-07/0.006352, allocations: 0 / 326.7 MB, free: 5.891 MB / 298.7 MB Notification: Performance of Templates: time 0.002397/0.008749, allocations: 0.5566 MB / 327.3 MB, free: 5.348 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 -s gbode -gbm=radauIIA3 -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.8957470837049186]