Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001268/0.001268, allocations: 89.05 kB / 9.989 MB, free: 0.6992 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001801/0.003069, allocations: 452 kB / 10.43 MB, free: 264 kB / 10.45 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.001164/0.001164, allocations: 161.1 kB / 11.33 MB, free: 2.84 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001696/0.002861, allocations: 483.5 kB / 11.8 MB, free: 2.363 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8958/0.8958, allocations: 158.6 MB / 171.2 MB, free: 2.504 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1686/1.064, allocations: 49.5 MB / 220.7 MB, free: 1.359 MB / 218.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.126/0.126, allocations: 32.35 MB / 253.8 MB, free: 232 kB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0214/0.1474, allocations: 12.32 MB / 266.1 MB, free: 3.875 MB / 266.7 MB " [Timeout remaining time 180] 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 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 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_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.352e-06/1.352e-06, allocations: 0 / 267.4 MB, free: 2.566 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.939e-05/2.074e-05, allocations: 6.25 kB / 267.4 MB, free: 2.559 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001584/0.001605, allocations: 0.8788 MB / 268.3 MB, free: 1.672 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 9.074e-05/0.001696, allocations: 47.83 kB / 268.3 MB, free: 1.625 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.593e-05/0.001742, allocations: 3.938 kB / 268.3 MB, free: 1.621 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 5.005e-05/0.001792, allocations: 7.922 kB / 268.3 MB, free: 1.613 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 1.739e-05/0.001809, allocations: 4 kB / 268.3 MB, free: 1.609 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 5.128e-05/0.001861, allocations: 19.92 kB / 268.3 MB, free: 1.59 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 7.691e-05/0.001938, allocations: 35.92 kB / 268.4 MB, free: 1.555 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.3e-05/0.002011, allocations: 19.92 kB / 268.4 MB, free: 1.535 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.339e-05/0.002064, allocations: 35.84 kB / 268.4 MB, free: 1.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.177e-05/0.002096, allocations: 0 / 268.4 MB, free: 1.5 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.595e-05/0.002112, allocations: 4 kB / 268.4 MB, free: 1.496 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.065e-06/0.00212, allocations: 4 kB / 268.4 MB, free: 1.492 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.723e-05/0.002137, allocations: 7.938 kB / 268.5 MB, free: 1.484 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.911e-05/0.002156, allocations: 11.98 kB / 268.5 MB, free: 1.473 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 8.273e-05/0.002239, allocations: 23.91 kB / 268.5 MB, free: 1.449 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.021e-05/0.002249, allocations: 4 kB / 268.5 MB, free: 1.445 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.00225, allocations: 4 kB / 268.5 MB, free: 1.441 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.002257, allocations: 0 / 268.5 MB, free: 1.441 MB / 266.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.0002892/0.002546, allocations: 256.5 kB / 268.7 MB, free: 1.164 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.495e-05/0.002571, allocations: 8.031 kB / 268.8 MB, free: 1.156 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.473e-05/0.002596, allocations: 8.938 kB / 268.8 MB, free: 1.148 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001073/0.002703, allocations: 121.7 kB / 268.9 MB, free: 1.004 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.07e-06/0.002708, allocations: 4.312 kB / 268.9 MB, free: 1 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.431e-05/0.002722, allocations: 8.312 kB / 268.9 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.08e-05/0.002783, allocations: 46.23 kB / 268.9 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.458e-06/0.002788, allocations: 4.188 kB / 268.9 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.212e-06/0.002794, allocations: 4.359 kB / 268.9 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.002798, allocations: 384 / 268.9 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.04e-05/0.002818, allocations: 19.92 kB / 269 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002372/0.003055, allocations: 172.2 kB / 269.1 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.236e-05/0.003088, allocations: 18.58 kB / 269.2 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.528e-06/0.003097, allocations: 8.922 kB / 269.2 MB, free: 0.6914 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.87e-06/0.003102, allocations: 0 / 269.2 MB, free: 0.6914 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.421e-05/0.003166, allocations: 55.41 kB / 269.2 MB, free: 0.625 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 7.51e-07/0.003167, allocations: 4 kB / 269.2 MB, free: 0.6211 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 7.625e-05/0.003243, allocations: 41.62 kB / 269.3 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.301e-05/0.003266, allocations: 55.41 kB / 269.3 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.918e-05/0.003315, allocations: 110.7 kB / 269.4 MB, free: 396 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.197e-06/0.003325, allocations: 29.7 kB / 269.5 MB, free: 360 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.553e-05/0.00335, allocations: 88.03 kB / 269.5 MB, free: 268 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.368e-05/0.003364, allocations: 15.92 kB / 269.6 MB, free: 252 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.087e-05/0.003385, allocations: 17.72 kB / 269.6 MB, free: 228 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.542e-05/0.00346, allocations: 314.8 kB / 269.9 MB, free: 15.91 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.022e-06/0.003466, allocations: 4 kB / 269.9 MB, free: 15.9 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.351e-05/0.00348, allocations: 25.7 kB / 269.9 MB, free: 15.87 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.104e-05/0.003501, allocations: 17.66 kB / 269.9 MB, free: 15.85 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.003502, allocations: 4 kB / 269.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 3.854e-05/0.003541, allocations: 45.56 kB / 270 MB, free: 15.79 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/0.003551, allocations: 8 kB / 270 MB, free: 15.79 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.267e-06/0.003555, allocations: 0 / 270 MB, free: 15.79 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.135e-06/0.003563, allocations: 3.984 kB / 270 MB, free: 15.78 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.44e-05/0.003587, allocations: 4 kB / 270 MB, free: 15.78 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.964e-06/0.003589, allocations: 0 / 270 MB, free: 15.78 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.666e-05/0.003606, allocations: 7.953 kB / 270 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.587e-06/0.003609, allocations: 12.03 kB / 270 MB, free: 15.76 MB / 282.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.27e-05/0.003652, allocations: 109.8 kB / 270.1 MB, free: 15.64 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.552e-06/0.003659, allocations: 3.938 kB / 270.1 MB, free: 15.64 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.842e-05/0.003677, allocations: 15.98 kB / 270.1 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.003678, allocations: 0 / 270.1 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-06/0.003679, allocations: 3.938 kB / 270.1 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.003682, allocations: 0 / 270.1 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001339/0.003816, allocations: 199.1 kB / 270.3 MB, free: 15.4 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.003818, allocations: 3.938 kB / 270.3 MB, free: 15.39 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.228e-05/0.00383, allocations: 0 / 270.3 MB, free: 15.39 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.37e-06/0.003836, allocations: 8 kB / 270.3 MB, free: 15.39 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.52e-07/0.003837, allocations: 0 / 270.3 MB, free: 15.39 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.703e-06/0.003843, allocations: 0 / 270.3 MB, free: 15.39 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-07/0.003844, allocations: 0 / 270.3 MB, free: 15.39 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.003845, allocations: 0 / 270.3 MB, free: 15.39 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.678e-05/0.003921, allocations: 151.4 kB / 270.5 MB, free: 15.22 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.993e-06/0.003928, allocations: 0 / 270.5 MB, free: 15.22 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.422e-05/0.003953, allocations: 0 / 270.5 MB, free: 15.22 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.833e-05/0.003971, allocations: 7.984 kB / 270.5 MB, free: 15.21 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.824e-06/0.003973, allocations: 0 / 270.5 MB, free: 15.21 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.094e-05/0.003984, allocations: 12.84 kB / 270.5 MB, free: 15.2 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.003984, allocations: 4.031 kB / 270.5 MB, free: 15.2 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001155/0.004099, allocations: 11.95 kB / 270.5 MB, free: 15.18 MB / 282.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 5.11e-05/0.00415, allocations: 76.42 kB / 270.6 MB, free: 15.1 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 4.214e-05/0.004193, allocations: 16.84 kB / 270.6 MB, free: 15.08 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.004195, allocations: 0 / 270.6 MB, free: 15.08 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.439e-05/0.00421, allocations: 20.73 kB / 270.6 MB, free: 15.06 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001332/0.004343, allocations: 45.62 kB / 270.7 MB, free: 15.01 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002923/0.004635, allocations: 144.2 kB / 270.8 MB, free: 14.84 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.726e-05/0.004663, allocations: 59.45 kB / 270.9 MB, free: 14.76 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 1.449e-05/0.004677, allocations: 3.984 kB / 270.9 MB, free: 14.76 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.545e-05/0.004712, allocations: 59.36 kB / 270.9 MB, free: 14.7 MB / 282.7 MB Notification: Performance of SimCode: time 5.1e-07/0.004713, allocations: 0 / 270.9 MB, free: 14.7 MB / 282.7 MB Notification: Performance of Templates: time 0.001675/0.006388, allocations: 0.5915 MB / 271.5 MB, free: 14.11 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5772958686575294]