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.0009855/0.0009855, allocations: 88.2 kB / 20.94 MB, free: 3.602 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.0009531/0.0009531, allocations: 169 kB / 24.25 MB, free: 308 kB / 18.57 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 1.19/1.19, allocations: 158.6 MB / 186 MB, free: 2.93 MB / 170.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.1426/0.1426, allocations: 32.37 MB / 270.7 MB, free: 14.77 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.994e-06/1.994e-06, allocations: 0 / 347.6 MB, free: 9.801 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.942e-05/3.141e-05, allocations: 4.281 kB / 347.6 MB, free: 9.797 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002979/0.003011, allocations: 0.8468 MB / 348.5 MB, free: 8.957 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.000345/0.003356, allocations: 43.88 kB / 348.5 MB, free: 8.914 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001139/0.00347, allocations: 7.938 kB / 348.5 MB, free: 8.906 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001839/0.003653, allocations: 7.938 kB / 348.6 MB, free: 8.898 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 3.404e-05/0.003688, allocations: 0 / 348.6 MB, free: 8.898 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001958/0.003883, allocations: 23.91 kB / 348.6 MB, free: 8.875 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001753/0.004059, allocations: 43.84 kB / 348.6 MB, free: 8.832 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001478/0.004206, allocations: 8 kB / 348.6 MB, free: 8.824 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.507e-05/0.004281, allocations: 15.98 kB / 348.6 MB, free: 8.809 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.768e-05/0.004349, allocations: 15.91 kB / 348.7 MB, free: 8.793 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.243e-05/0.004382, allocations: 4 kB / 348.7 MB, free: 8.789 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.423e-05/0.004396, allocations: 4 kB / 348.7 MB, free: 8.785 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.602e-05/0.004422, allocations: 4 kB / 348.7 MB, free: 8.781 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.163e-05/0.004473, allocations: 19.92 kB / 348.7 MB, free: 8.762 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000165/0.004638, allocations: 23.91 kB / 348.7 MB, free: 8.738 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.004643, allocations: 3.938 kB / 348.7 MB, free: 8.734 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.004644, allocations: 0 / 348.7 MB, free: 8.734 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.191e-06/0.004651, allocations: 0 / 348.7 MB, free: 8.734 MB / 282.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.0005131/0.005164, allocations: 380.3 kB / 349.1 MB, free: 8.32 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.583e-05/0.005219, allocations: 12.03 kB / 349.1 MB, free: 8.309 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.644e-05/0.005296, allocations: 12.89 kB / 349.1 MB, free: 8.297 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002263/0.005522, allocations: 128.4 kB / 349.2 MB, free: 8.145 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/0.005539, allocations: 8.375 kB / 349.2 MB, free: 8.137 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.945e-05/0.005569, allocations: 8.359 kB / 349.3 MB, free: 8.129 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00014/0.005709, allocations: 46.25 kB / 349.3 MB, free: 8.078 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.00572, allocations: 192 / 349.3 MB, free: 8.078 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.486e-05/0.005735, allocations: 384 / 349.3 MB, free: 8.078 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.005746, allocations: 384 / 349.3 MB, free: 8.078 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.371e-05/0.00579, allocations: 15.94 kB / 349.3 MB, free: 8.062 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006086/0.006398, allocations: 283.7 kB / 349.6 MB, free: 7.75 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.604e-05/0.006474, allocations: 31.05 kB / 349.6 MB, free: 7.707 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.516e-05/0.0065, allocations: 11.62 kB / 349.6 MB, free: 7.691 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.022e-05/0.00651, allocations: 4 kB / 349.6 MB, free: 7.688 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001129/0.006623, allocations: 61.06 kB / 349.7 MB, free: 7.613 MB / 282.7 MB Notification: Performance of pre-optimization done (n=3): time 2.274e-06/0.006625, allocations: 0 / 349.7 MB, free: 7.613 MB / 282.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001895/0.006814, allocations: 45.88 kB / 349.7 MB, free: 7.562 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.296e-05/0.006847, allocations: 51.41 kB / 349.8 MB, free: 7.5 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.231e-05/0.00694, allocations: 165.9 kB / 350 MB, free: 7.32 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.041e-05/0.00695, allocations: 25.7 kB / 350 MB, free: 7.289 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.042e-05/0.007001, allocations: 138.8 kB / 350.1 MB, free: 7.148 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.049e-05/0.007021, allocations: 3.953 kB / 350.1 MB, free: 7.145 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.361e-05/0.007065, allocations: 27.36 kB / 350.1 MB, free: 7.109 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.627e-05/0.007151, allocations: 0.4884 MB / 350.6 MB, free: 6.609 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.728e-05/0.007168, allocations: 0 / 350.6 MB, free: 6.609 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.267e-05/0.007201, allocations: 39.28 kB / 350.7 MB, free: 6.562 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.532e-05/0.007256, allocations: 23.38 kB / 350.7 MB, free: 6.531 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.00726, allocations: 0 / 350.7 MB, free: 6.531 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.986e-05/0.007359, allocations: 61.52 kB / 350.8 MB, free: 6.465 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.836e-05/0.007378, allocations: 4 kB / 350.8 MB, free: 6.461 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.007383, allocations: 0 / 350.8 MB, free: 6.461 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/0.007403, allocations: 4 kB / 350.8 MB, free: 6.457 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.38e-05/0.007447, allocations: 3.938 kB / 350.8 MB, free: 6.453 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.007455, allocations: 8.031 kB / 350.8 MB, free: 6.445 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.49e-05/0.00749, allocations: 0 / 350.8 MB, free: 6.445 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.611e-06/0.007495, allocations: 0 / 350.8 MB, free: 6.445 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 7.179e-05/0.007567, allocations: 160.5 kB / 350.9 MB, free: 6.277 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.71e-05/0.007584, allocations: 7.938 kB / 350.9 MB, free: 6.27 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.835e-05/0.007613, allocations: 11.98 kB / 351 MB, free: 6.258 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.007615, allocations: 0 / 351 MB, free: 6.258 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.007621, allocations: 0 / 351 MB, free: 6.258 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.007624, allocations: 0 / 351 MB, free: 6.258 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002925/0.007917, allocations: 305.3 kB / 351.3 MB, free: 5.918 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.00792, allocations: 8 kB / 351.3 MB, free: 5.91 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.742e-05/0.007958, allocations: 0 / 351.3 MB, free: 5.91 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.007962, allocations: 0 / 351.3 MB, free: 5.91 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.934e-05/0.007981, allocations: 0 / 351.3 MB, free: 5.91 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.007984, allocations: 4 kB / 351.3 MB, free: 5.906 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.007986, allocations: 320 / 351.3 MB, free: 5.906 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001862/0.008173, allocations: 203.8 kB / 351.5 MB, free: 5.688 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.498e-05/0.008188, allocations: 3.953 kB / 351.5 MB, free: 5.684 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.023e-05/0.008208, allocations: 0 / 351.5 MB, free: 5.684 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.003e-05/0.008268, allocations: 7.984 kB / 351.5 MB, free: 5.676 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.264e-05/0.008311, allocations: 0 / 351.5 MB, free: 5.676 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.073e-06/0.008318, allocations: 4.031 kB / 351.5 MB, free: 5.672 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.098e-05/0.008359, allocations: 139.2 kB / 351.6 MB, free: 5.535 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.008359, allocations: 0 / 351.6 MB, free: 5.535 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002431/0.008602, allocations: 4 kB / 351.6 MB, free: 5.531 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 0.0001019/0.008704, allocations: 91.25 kB / 351.7 MB, free: 5.434 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001083/0.008812, allocations: 27.84 kB / 351.7 MB, free: 5.402 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.008814, allocations: 0 / 351.7 MB, free: 5.402 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.385e-05/0.008838, allocations: 19.77 kB / 351.8 MB, free: 5.379 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003079/0.009146, allocations: 7.938 kB / 351.8 MB, free: 5.371 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003823/0.009528, allocations: 158.2 kB / 351.9 MB, free: 5.188 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.833e-05/0.009567, allocations: 59.34 kB / 352 MB, free: 5.109 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.46e-05/0.009591, allocations: 3.906 kB / 352 MB, free: 5.105 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.062e-05/0.009632, allocations: 12.5 kB / 352 MB, free: 5.094 MB / 282.7 MB Notification: Performance of SimCode: time 9.72e-07/0.009633, allocations: 0 / 352 MB, free: 5.094 MB / 282.7 MB Notification: Performance of Templates: time 0.003455/0.01309, allocations: 0.5358 MB / 352.5 MB, free: 4.574 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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3562478460371494]