Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001464/0.001464, allocations: 80.8 kB / 21.49 MB, free: 2.996 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.001643/0.001643, allocations: 168.7 kB / 24.91 MB, free: 9.195 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.003/1.003, allocations: 177.1 MB / 205.3 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2417/0.2417, allocations: 34.26 MB / 296.1 MB, free: 0.7344 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.042e-06/1.042e-06, allocations: 0 / 325.3 MB, free: 7.676 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.734e-05/1.838e-05, allocations: 8.25 kB / 325.3 MB, free: 7.668 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001451/0.00147, allocations: 0.8806 MB / 326.2 MB, free: 6.789 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001871/0.001657, allocations: 47.77 kB / 326.2 MB, free: 6.742 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.236e-05/0.001719, allocations: 4 kB / 326.2 MB, free: 6.738 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001122/0.001831, allocations: 11.88 kB / 326.2 MB, free: 6.727 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 2.065e-05/0.001852, allocations: 3.938 kB / 326.2 MB, free: 6.723 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001022/0.001954, allocations: 15.97 kB / 326.2 MB, free: 6.707 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.508e-05/0.002039, allocations: 35.91 kB / 326.3 MB, free: 6.672 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8e-05/0.002119, allocations: 12.62 kB / 326.3 MB, free: 6.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.348e-05/0.002163, allocations: 23.91 kB / 326.3 MB, free: 6.637 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.741e-05/0.0022, allocations: 7.984 kB / 326.3 MB, free: 6.629 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.547e-05/0.002216, allocations: 4 kB / 326.3 MB, free: 6.625 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.153e-06/0.002223, allocations: 0 / 326.3 MB, free: 6.625 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.934e-05/0.002242, allocations: 15.94 kB / 326.3 MB, free: 6.609 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.773e-05/0.00226, allocations: 11.98 kB / 326.3 MB, free: 6.598 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.887e-05/0.002339, allocations: 23.84 kB / 326.4 MB, free: 6.574 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.793e-06/0.002341, allocations: 0 / 326.4 MB, free: 6.574 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.002341, allocations: 0 / 326.4 MB, free: 6.574 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.876e-06/0.002344, allocations: 4 kB / 326.4 MB, free: 6.57 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.0002704/0.002615, allocations: 250.3 kB / 326.6 MB, free: 6.301 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.051e-05/0.002645, allocations: 11.97 kB / 326.6 MB, free: 6.289 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.342e-05/0.002669, allocations: 4.938 kB / 326.6 MB, free: 6.285 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000126/0.002794, allocations: 125.7 kB / 326.8 MB, free: 6.137 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.867e-06/0.002803, allocations: 8.375 kB / 326.8 MB, free: 6.129 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.157e-05/0.002825, allocations: 8.375 kB / 326.8 MB, free: 6.121 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.163e-05/0.002897, allocations: 42.25 kB / 326.8 MB, free: 6.074 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.732e-06/0.002903, allocations: 4.172 kB / 326.8 MB, free: 6.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.631e-06/0.002909, allocations: 384 / 326.8 MB, free: 6.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.002913, allocations: 384 / 326.8 MB, free: 6.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.038e-05/0.002933, allocations: 15.88 kB / 326.8 MB, free: 6.055 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002661/0.0032, allocations: 168.2 kB / 327 MB, free: 5.875 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.487e-05/0.003234, allocations: 18.58 kB / 327 MB, free: 5.848 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.079e-05/0.003245, allocations: 12.92 kB / 327 MB, free: 5.832 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.723e-06/0.003252, allocations: 3.938 kB / 327 MB, free: 5.828 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.175e-05/0.003304, allocations: 55.28 kB / 327.1 MB, free: 5.762 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 6.12e-07/0.003304, allocations: 0 / 327.1 MB, free: 5.762 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 8.381e-05/0.003388, allocations: 41.69 kB / 327.1 MB, free: 5.715 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.477e-05/0.003413, allocations: 51.41 kB / 327.2 MB, free: 5.652 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.351e-05/0.003466, allocations: 110.8 kB / 327.3 MB, free: 5.531 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.666e-06/0.003475, allocations: 29.64 kB / 327.3 MB, free: 5.496 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.368e-05/0.003509, allocations: 96.06 kB / 327.4 MB, free: 5.398 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.349e-05/0.003522, allocations: 7.953 kB / 327.4 MB, free: 5.391 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.559e-05/0.003548, allocations: 21.7 kB / 327.4 MB, free: 5.363 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.62e-05/0.003624, allocations: 322.8 kB / 327.8 MB, free: 5.039 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.62e-06/0.00363, allocations: 0 / 327.8 MB, free: 5.039 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.55e-05/0.003645, allocations: 21.89 kB / 327.8 MB, free: 5.012 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.16e-05/0.003667, allocations: 17.7 kB / 327.8 MB, free: 4.988 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.003668, allocations: 0 / 327.8 MB, free: 4.988 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 4.559e-05/0.003714, allocations: 53.56 kB / 327.8 MB, free: 4.93 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.003728, allocations: 8 kB / 327.9 MB, free: 4.922 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.003733, allocations: 0 / 327.9 MB, free: 4.922 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.003745, allocations: 0 / 327.9 MB, free: 4.922 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.275e-05/0.003778, allocations: 8.031 kB / 327.9 MB, free: 4.914 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.003782, allocations: 0 / 327.9 MB, free: 4.914 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.788e-05/0.0038, allocations: 0 / 327.9 MB, free: 4.914 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.577e-06/0.003804, allocations: 4 kB / 327.9 MB, free: 4.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 5.449e-05/0.003858, allocations: 113.8 kB / 328 MB, free: 4.789 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.979e-06/0.003868, allocations: 11.92 kB / 328 MB, free: 4.777 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.067e-05/0.003889, allocations: 8 kB / 328 MB, free: 4.77 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.001e-06/0.00389, allocations: 0 / 328 MB, free: 4.77 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.442e-06/0.003891, allocations: 0 / 328 MB, free: 4.77 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.003894, allocations: 4 kB / 328 MB, free: 4.766 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001621/0.004056, allocations: 199.2 kB / 328.2 MB, free: 4.547 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.004059, allocations: 3.938 kB / 328.2 MB, free: 4.543 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.556e-05/0.004074, allocations: 8 kB / 328.2 MB, free: 4.535 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.185e-06/0.004076, allocations: 3.938 kB / 328.2 MB, free: 4.531 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.011e-05/0.004086, allocations: 0 / 328.2 MB, free: 4.531 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.21e-07/0.004087, allocations: 0 / 328.2 MB, free: 4.531 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.004089, allocations: 0 / 328.2 MB, free: 4.531 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.017e-05/0.004179, allocations: 143.5 kB / 328.3 MB, free: 4.375 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.212e-06/0.004185, allocations: 7.875 kB / 328.4 MB, free: 4.367 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.997e-06/0.004194, allocations: 4 kB / 328.4 MB, free: 4.363 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.543e-05/0.004219, allocations: 0 / 328.4 MB, free: 4.363 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.908e-05/0.004238, allocations: 8.016 kB / 328.4 MB, free: 4.355 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.887e-06/0.004242, allocations: 4 kB / 328.4 MB, free: 4.352 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.242e-05/0.004255, allocations: 13.17 kB / 328.4 MB, free: 4.336 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004255, allocations: 0 / 328.4 MB, free: 4.336 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001338/0.004389, allocations: 7.953 kB / 328.4 MB, free: 4.328 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 9.393e-05/0.004483, allocations: 76.41 kB / 328.5 MB, free: 4.246 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 6.493e-05/0.004547, allocations: 17.03 kB / 328.5 MB, free: 4.227 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.00455, allocations: 0 / 328.5 MB, free: 4.227 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.515e-05/0.004565, allocations: 16.94 kB / 328.5 MB, free: 4.207 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001578/0.004723, allocations: 19.98 kB / 328.5 MB, free: 4.188 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002301/0.004953, allocations: 141.7 kB / 328.7 MB, free: 4.023 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.435e-05/0.004987, allocations: 63.28 kB / 328.7 MB, free: 3.941 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.565e-05/0.005003, allocations: 0 / 328.7 MB, free: 3.941 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.188e-05/0.005045, allocations: 59.36 kB / 328.8 MB, free: 3.883 MB / 298.7 MB Notification: Performance of SimCode: time 8.12e-07/0.005046, allocations: 0 / 328.8 MB, free: 3.883 MB / 298.7 MB Notification: Performance of Templates: time 0.002075/0.007121, allocations: 0.5448 MB / 329.3 MB, free: 3.344 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.829036491923034]