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.001457/0.001457, allocations: 81.08 kB / 20.65 MB, free: 3.848 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.001182/0.001182, allocations: 177 kB / 24.06 MB, free: 456 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.039/1.039, allocations: 158.6 MB / 185.9 MB, free: 2.816 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.1552/0.1552, allocations: 32.38 MB / 270.7 MB, free: 14.55 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.904e-06/1.904e-06, allocations: 0 / 348.1 MB, free: 9.207 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.028e-05/3.218e-05, allocations: 2.312 kB / 348.1 MB, free: 9.203 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002184/0.002217, allocations: 0.8459 MB / 348.9 MB, free: 8.367 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.000258/0.002475, allocations: 47.83 kB / 349 MB, free: 8.32 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.133e-05/0.002556, allocations: 0 / 349 MB, free: 8.32 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001444/0.0027, allocations: 7.875 kB / 349 MB, free: 8.312 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 2.763e-05/0.002728, allocations: 3.938 kB / 349 MB, free: 8.309 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000125/0.002853, allocations: 15.98 kB / 349 MB, free: 8.293 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.737e-05/0.00295, allocations: 39.91 kB / 349.1 MB, free: 8.254 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000107/0.003057, allocations: 15.97 kB / 349.1 MB, free: 8.238 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.234e-05/0.00311, allocations: 19.92 kB / 349.1 MB, free: 8.219 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.738e-05/0.003157, allocations: 8 kB / 349.1 MB, free: 8.211 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.733e-05/0.003174, allocations: 4 kB / 349.1 MB, free: 8.207 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.091e-05/0.003185, allocations: 4 kB / 349.1 MB, free: 8.203 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.293e-05/0.003208, allocations: 15.86 kB / 349.1 MB, free: 8.188 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.987e-05/0.003238, allocations: 11.98 kB / 349.1 MB, free: 8.176 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001069/0.003345, allocations: 27.84 kB / 349.2 MB, free: 8.148 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.003348, allocations: 0 / 349.2 MB, free: 8.148 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.003349, allocations: 4 kB / 349.2 MB, free: 8.145 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.531e-06/0.003354, allocations: 0 / 349.2 MB, free: 8.145 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.0003542/0.003709, allocations: 380.2 kB / 349.5 MB, free: 7.73 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.003753, allocations: 12.02 kB / 349.6 MB, free: 7.719 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.445e-05/0.003787, allocations: 12.89 kB / 349.6 MB, free: 7.707 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001318/0.003919, allocations: 132.5 kB / 349.7 MB, free: 7.551 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.594e-06/0.003927, allocations: 384 / 349.7 MB, free: 7.551 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.815e-05/0.003945, allocations: 12.31 kB / 349.7 MB, free: 7.539 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.365e-05/0.004018, allocations: 42.25 kB / 349.8 MB, free: 7.492 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.583e-06/0.004025, allocations: 192 / 349.8 MB, free: 7.492 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.103e-06/0.004032, allocations: 384 / 349.8 MB, free: 7.492 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.004038, allocations: 384 / 349.8 MB, free: 7.492 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.852e-05/0.004056, allocations: 11.94 kB / 349.8 MB, free: 7.48 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003498/0.004406, allocations: 268.3 kB / 350 MB, free: 7.191 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.809e-05/0.004444, allocations: 31.05 kB / 350.1 MB, free: 7.148 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.33e-05/0.004458, allocations: 15.73 kB / 350.1 MB, free: 7.129 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.704e-06/0.004465, allocations: 0 / 350.1 MB, free: 7.129 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.914e-05/0.004524, allocations: 53 kB / 350.1 MB, free: 7.062 MB / 282.7 MB Notification: Performance of pre-optimization done (n=3): time 1.443e-06/0.004526, allocations: 4 kB / 350.1 MB, free: 7.059 MB / 282.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001092/0.004635, allocations: 41.64 kB / 350.2 MB, free: 7.012 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.445e-05/0.004659, allocations: 59.39 kB / 350.2 MB, free: 6.941 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.706e-05/0.004717, allocations: 169.9 kB / 350.4 MB, free: 6.758 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.576e-06/0.004725, allocations: 29.64 kB / 350.4 MB, free: 6.723 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.577e-05/0.004761, allocations: 142.8 kB / 350.6 MB, free: 6.578 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.657e-05/0.004777, allocations: 7.953 kB / 350.6 MB, free: 6.57 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.304e-05/0.004811, allocations: 23.38 kB / 350.6 MB, free: 6.539 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.258e-05/0.004883, allocations: 0.4884 MB / 351.1 MB, free: 6.039 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.436e-06/0.004892, allocations: 4 kB / 351.1 MB, free: 6.035 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.675e-05/0.004908, allocations: 19.38 kB / 351.1 MB, free: 6.008 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.54e-05/0.004934, allocations: 27.3 kB / 351.1 MB, free: 5.973 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.004936, allocations: 0 / 351.1 MB, free: 5.973 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 4.888e-05/0.004985, allocations: 57.53 kB / 351.2 MB, free: 5.91 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.004999, allocations: 12.02 kB / 351.2 MB, free: 5.898 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.005004, allocations: 0 / 351.2 MB, free: 5.898 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.005015, allocations: 4 kB / 351.2 MB, free: 5.895 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.217e-05/0.005047, allocations: 4 kB / 351.2 MB, free: 5.891 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.176e-06/0.00505, allocations: 0 / 351.2 MB, free: 5.891 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.253e-05/0.005073, allocations: 4 kB / 351.2 MB, free: 5.887 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.797e-06/0.005077, allocations: 0 / 351.2 MB, free: 5.887 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 5.827e-05/0.005135, allocations: 160.5 kB / 351.4 MB, free: 5.719 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.175e-06/0.005143, allocations: 7.938 kB / 351.4 MB, free: 5.711 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.528e-05/0.005168, allocations: 11.98 kB / 351.4 MB, free: 5.699 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.005171, allocations: 4 kB / 351.4 MB, free: 5.695 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.005173, allocations: 0 / 351.4 MB, free: 5.695 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.005177, allocations: 0 / 351.4 MB, free: 5.695 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001939/0.005371, allocations: 281.9 kB / 351.7 MB, free: 5.387 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.005373, allocations: 0 / 351.7 MB, free: 5.387 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.696e-05/0.00539, allocations: 0 / 351.7 MB, free: 5.387 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.005391, allocations: 4 kB / 351.7 MB, free: 5.383 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.005402, allocations: 0 / 351.7 MB, free: 5.383 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-06/0.005403, allocations: 0 / 351.7 MB, free: 5.383 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.005405, allocations: 384 / 351.7 MB, free: 5.383 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001024/0.005507, allocations: 207.8 kB / 351.9 MB, free: 5.16 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.846e-06/0.005516, allocations: 11.97 kB / 351.9 MB, free: 5.148 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.064e-05/0.005527, allocations: 0 / 351.9 MB, free: 5.148 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.843e-05/0.005555, allocations: 4 kB / 351.9 MB, free: 5.145 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.532e-05/0.00558, allocations: 4 kB / 351.9 MB, free: 5.141 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.977e-06/0.005584, allocations: 3.984 kB / 351.9 MB, free: 5.137 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.334e-05/0.005608, allocations: 131.1 kB / 352 MB, free: 5.008 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005608, allocations: 0 / 352 MB, free: 5.008 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001348/0.005743, allocations: 4 kB / 352 MB, free: 5.004 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 7.068e-05/0.005813, allocations: 91.25 kB / 352.1 MB, free: 4.906 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 6.577e-05/0.005879, allocations: 27.61 kB / 352.1 MB, free: 4.875 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.005883, allocations: 4 kB / 352.1 MB, free: 4.871 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.668e-05/0.005899, allocations: 11.69 kB / 352.2 MB, free: 4.855 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002186/0.006118, allocations: 11.92 kB / 352.2 MB, free: 4.844 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002609/0.006379, allocations: 134.1 kB / 352.3 MB, free: 4.684 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.559e-05/0.006404, allocations: 59.34 kB / 352.4 MB, free: 4.605 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 1.984e-05/0.006424, allocations: 11.91 kB / 352.4 MB, free: 4.594 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.637e-05/0.006461, allocations: 70.2 kB / 352.4 MB, free: 4.523 MB / 282.7 MB Notification: Performance of SimCode: time 8.51e-07/0.006461, allocations: 0 / 352.4 MB, free: 4.523 MB / 282.7 MB Notification: Performance of Templates: time 0.002331/0.008792, allocations: 0.5845 MB / 353 MB, free: 3.953 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.188087012153119]