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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001244/0.001244, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001658/0.002902, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009832/0.0009832, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001414/0.002397, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8762/0.8762, allocations: 173.4 MB / 186 MB, free: 7.539 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1418/1.018, allocations: 52.49 MB / 238.5 MB, free: 7.617 MB / 234.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.1386/0.1386, allocations: 32.8 MB / 272 MB, free: 6.293 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.01875/0.1574, allocations: 12.54 MB / 284.5 MB, free: 9.711 MB / 282.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.383e-06/1.383e-06, allocations: 0 / 285.8 MB, free: 8.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.038e-05/1.176e-05, allocations: 2.312 kB / 285.8 MB, free: 8.414 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001256/0.001268, allocations: 0.8772 MB / 286.7 MB, free: 7.539 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 9.895e-05/0.001367, allocations: 51.77 kB / 286.8 MB, free: 7.488 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.734e-05/0.001414, allocations: 0 / 286.8 MB, free: 7.488 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.399e-05/0.001468, allocations: 7.922 kB / 286.8 MB, free: 7.48 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 1.964e-05/0.001488, allocations: 7.938 kB / 286.8 MB, free: 7.473 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 5.685e-05/0.001545, allocations: 19.97 kB / 286.8 MB, free: 7.453 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.136e-05/0.001626, allocations: 39.86 kB / 286.8 MB, free: 7.414 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.229e-05/0.001698, allocations: 15.98 kB / 286.9 MB, free: 7.398 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.122e-05/0.001759, allocations: 23.92 kB / 286.9 MB, free: 7.375 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.257e-05/0.001802, allocations: 7.969 kB / 286.9 MB, free: 7.367 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.112e-05/0.001823, allocations: 4 kB / 286.9 MB, free: 7.363 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.145e-05/0.001835, allocations: 4 kB / 286.9 MB, free: 7.359 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.113e-05/0.001856, allocations: 7.938 kB / 286.9 MB, free: 7.352 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.035e-05/0.001876, allocations: 8 kB / 286.9 MB, free: 7.344 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.606e-05/0.001972, allocations: 23.86 kB / 286.9 MB, free: 7.32 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.779e-06/0.001982, allocations: 8 kB / 286.9 MB, free: 7.312 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.001982, allocations: 0 / 286.9 MB, free: 7.312 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.835e-06/0.00199, allocations: 0 / 286.9 MB, free: 7.312 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.0003134/0.002304, allocations: 256.5 kB / 287.2 MB, free: 7.035 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.013e-05/0.002334, allocations: 8.031 kB / 287.2 MB, free: 7.027 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.714e-05/0.002361, allocations: 4.938 kB / 287.2 MB, free: 7.023 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001234/0.002484, allocations: 133.7 kB / 287.3 MB, free: 6.867 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.873e-06/0.002491, allocations: 384 / 287.3 MB, free: 6.867 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.911e-05/0.00251, allocations: 4.375 kB / 287.3 MB, free: 6.863 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.591e-05/0.002586, allocations: 46.25 kB / 287.4 MB, free: 6.812 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.571e-06/0.002592, allocations: 192 / 287.4 MB, free: 6.812 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.53e-06/0.002597, allocations: 4.312 kB / 287.4 MB, free: 6.809 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.002602, allocations: 384 / 287.4 MB, free: 6.809 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.087e-05/0.002622, allocations: 19.86 kB / 287.4 MB, free: 6.789 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002345/0.002857, allocations: 172.2 kB / 287.6 MB, free: 6.605 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.538e-05/0.002892, allocations: 22.58 kB / 287.6 MB, free: 6.574 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.578e-06/0.002902, allocations: 12.86 kB / 287.6 MB, free: 6.559 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.07e-06/0.002907, allocations: 0 / 287.6 MB, free: 6.559 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.802e-05/0.002965, allocations: 55.34 kB / 287.7 MB, free: 6.492 MB / 282.7 MB Notification: Performance of pre-optimization done (n=3): time 6.21e-07/0.002966, allocations: 0 / 287.7 MB, free: 6.492 MB / 282.7 MB Notification: Performance of matching and sorting (n=3): time 8.331e-05/0.003049, allocations: 37.88 kB / 287.7 MB, free: 6.449 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.587e-05/0.003075, allocations: 51.41 kB / 287.8 MB, free: 6.387 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.702e-05/0.003132, allocations: 122.7 kB / 287.9 MB, free: 6.254 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.979e-06/0.003142, allocations: 29.7 kB / 287.9 MB, free: 6.219 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.007e-05/0.003172, allocations: 88.08 kB / 288 MB, free: 6.129 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.669e-05/0.003188, allocations: 15.88 kB / 288 MB, free: 6.113 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.433e-05/0.003213, allocations: 25.7 kB / 288 MB, free: 6.082 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.367e-05/0.003287, allocations: 310.8 kB / 288.3 MB, free: 5.77 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.222e-06/0.003293, allocations: 4 kB / 288.3 MB, free: 5.766 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.991e-05/0.003313, allocations: 25.69 kB / 288.4 MB, free: 5.734 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.228e-05/0.003345, allocations: 17.72 kB / 288.4 MB, free: 5.711 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.003347, allocations: 0 / 288.4 MB, free: 5.711 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 4.772e-05/0.003394, allocations: 45.56 kB / 288.4 MB, free: 5.66 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.082e-05/0.003405, allocations: 8 kB / 288.4 MB, free: 5.652 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.00341, allocations: 7.984 kB / 288.4 MB, free: 5.645 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.003421, allocations: 0 / 288.4 MB, free: 5.645 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.611e-05/0.003447, allocations: 4 kB / 288.4 MB, free: 5.641 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.705e-06/0.00345, allocations: 0 / 288.4 MB, free: 5.641 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.81e-05/0.003468, allocations: 8.031 kB / 288.4 MB, free: 5.633 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.344e-06/0.00347, allocations: 0 / 288.4 MB, free: 5.633 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.937e-05/0.00352, allocations: 121.8 kB / 288.6 MB, free: 5.504 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.33e-06/0.003525, allocations: 3.938 kB / 288.6 MB, free: 5.5 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.779e-05/0.003543, allocations: 11.98 kB / 288.6 MB, free: 5.488 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.003544, allocations: 0 / 288.6 MB, free: 5.488 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-06/0.003546, allocations: 0 / 288.6 MB, free: 5.488 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.003548, allocations: 0 / 288.6 MB, free: 5.488 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001487/0.003697, allocations: 198.8 kB / 288.8 MB, free: 5.27 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.003699, allocations: 7.875 kB / 288.8 MB, free: 5.262 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.007e-05/0.003719, allocations: 3.938 kB / 288.8 MB, free: 5.258 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.474e-06/0.003727, allocations: 8 kB / 288.8 MB, free: 5.25 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.003729, allocations: 0 / 288.8 MB, free: 5.25 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.003735, allocations: 0 / 288.8 MB, free: 5.25 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.003736, allocations: 0 / 288.8 MB, free: 5.25 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.003737, allocations: 0 / 288.8 MB, free: 5.25 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.969e-05/0.003817, allocations: 143.5 kB / 288.9 MB, free: 5.094 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.965e-06/0.003825, allocations: 4 kB / 288.9 MB, free: 5.09 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.645e-05/0.003851, allocations: 0 / 288.9 MB, free: 5.09 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.997e-05/0.003871, allocations: 7.984 kB / 288.9 MB, free: 5.082 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-06/0.003874, allocations: 0 / 288.9 MB, free: 5.082 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.037e-05/0.003884, allocations: 12.89 kB / 289 MB, free: 5.066 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.003884, allocations: 0 / 289 MB, free: 5.066 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001091/0.003993, allocations: 8 kB / 289 MB, free: 5.059 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.757e-05/0.004051, allocations: 80.34 kB / 289 MB, free: 4.973 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 5.181e-05/0.004103, allocations: 21.08 kB / 289.1 MB, free: 4.949 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.004105, allocations: 0 / 289.1 MB, free: 4.949 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.448e-05/0.00412, allocations: 16.98 kB / 289.1 MB, free: 4.93 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001319/0.004252, allocations: 45.56 kB / 289.1 MB, free: 4.879 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003002/0.004552, allocations: 156.2 kB / 289.3 MB, free: 4.699 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.736e-05/0.004579, allocations: 59.36 kB / 289.3 MB, free: 4.621 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 1.586e-05/0.004595, allocations: 7.984 kB / 289.3 MB, free: 4.613 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.636e-05/0.004632, allocations: 55.38 kB / 289.4 MB, free: 4.559 MB / 282.7 MB Notification: Performance of SimCode: time 7.51e-07/0.004632, allocations: 0 / 289.4 MB, free: 4.559 MB / 282.7 MB Notification: Performance of Templates: time 0.001857/0.00649, allocations: 0.582 MB / 290 MB, free: 3.988 MB / 282.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 -emit_protected -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.495987300761044]