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.002385/0.002385, allocations: 92.97 kB / 20.21 MB, free: 4.207 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.002775/0.002775, allocations: 169.2 kB / 23.53 MB, free: 0.8945 MB / 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.38/1.38, allocations: 158.6 MB / 185.3 MB, free: 2.895 MB / 170.7 MB " [Timeout remaining time 178] 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.2065/0.2065, allocations: 32.37 MB / 270 MB, free: 14.86 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.913e-06/1.913e-06, allocations: 0 / 346.9 MB, free: 9.82 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.728e-05/2.919e-05, allocations: 6.312 kB / 346.9 MB, free: 9.812 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001805/0.001834, allocations: 0.8197 MB / 347.7 MB, free: 9 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002055/0.00204, allocations: 47.83 kB / 347.8 MB, free: 8.953 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.309e-05/0.002103, allocations: 0 / 347.8 MB, free: 8.953 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001255/0.002228, allocations: 15.86 kB / 347.8 MB, free: 8.938 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 2.297e-05/0.002251, allocations: 7.938 kB / 347.8 MB, free: 8.93 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001086/0.00236, allocations: 11.98 kB / 347.8 MB, free: 8.918 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000105/0.002465, allocations: 43.86 kB / 347.9 MB, free: 8.875 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.572e-05/0.002551, allocations: 15.97 kB / 347.9 MB, free: 8.859 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.81e-05/0.002599, allocations: 15.98 kB / 347.9 MB, free: 8.844 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.94e-05/0.002638, allocations: 11.92 kB / 347.9 MB, free: 8.832 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.687e-05/0.002655, allocations: 4 kB / 347.9 MB, free: 8.828 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.082e-05/0.002666, allocations: 4 kB / 347.9 MB, free: 8.824 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.677e-05/0.002682, allocations: 0 / 347.9 MB, free: 8.824 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.504e-05/0.002708, allocations: 15.92 kB / 347.9 MB, free: 8.809 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.647e-05/0.002804, allocations: 43.83 kB / 348 MB, free: 8.766 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.834e-06/0.002806, allocations: 0 / 348 MB, free: 8.766 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.002806, allocations: 0 / 348 MB, free: 8.766 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.00281, allocations: 0 / 348 MB, free: 8.766 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.0003724/0.003182, allocations: 391.9 kB / 348.4 MB, free: 8.34 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.003218, allocations: 8.031 kB / 348.4 MB, free: 8.332 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.457e-05/0.003262, allocations: 8.891 kB / 348.4 MB, free: 8.324 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001478/0.00341, allocations: 124.6 kB / 348.5 MB, free: 8.176 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.101e-05/0.003421, allocations: 8.312 kB / 348.5 MB, free: 8.168 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.718e-05/0.003438, allocations: 4.375 kB / 348.5 MB, free: 8.164 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001021/0.00354, allocations: 54.19 kB / 348.6 MB, free: 8.105 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.003549, allocations: 192 / 348.6 MB, free: 8.105 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.719e-06/0.003559, allocations: 4.375 kB / 348.6 MB, free: 8.102 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.239e-06/0.003564, allocations: 4.359 kB / 348.6 MB, free: 8.098 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.737e-05/0.003612, allocations: 19.94 kB / 348.6 MB, free: 8.078 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004448/0.004056, allocations: 287.7 kB / 348.9 MB, free: 7.762 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.037e-05/0.004117, allocations: 35 kB / 348.9 MB, free: 7.715 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.839e-05/0.004135, allocations: 15.69 kB / 348.9 MB, free: 7.695 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.933e-06/0.004142, allocations: 0 / 348.9 MB, free: 7.695 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.642e-05/0.004209, allocations: 61.06 kB / 349 MB, free: 7.621 MB / 282.7 MB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.00421, allocations: 0 / 349 MB, free: 7.621 MB / 282.7 MB Notification: Performance of matching and sorting (n=3): time 0.000157/0.004367, allocations: 49.62 kB / 349 MB, free: 7.566 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.612e-05/0.004393, allocations: 51.41 kB / 349.1 MB, free: 7.504 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.046e-05/0.004473, allocations: 173.9 kB / 349.3 MB, free: 7.316 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.959e-06/0.004483, allocations: 25.7 kB / 349.3 MB, free: 7.285 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.991e-05/0.004523, allocations: 146.9 kB / 349.4 MB, free: 7.137 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.448e-05/0.004538, allocations: 7.953 kB / 349.4 MB, free: 7.129 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.235e-05/0.00457, allocations: 27.38 kB / 349.5 MB, free: 7.094 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.266e-05/0.004653, allocations: 496.1 kB / 349.9 MB, free: 6.598 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.792e-05/0.00467, allocations: 8 kB / 349.9 MB, free: 6.59 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.347e-05/0.004694, allocations: 23.56 kB / 350 MB, free: 6.559 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.813e-05/0.004732, allocations: 47.38 kB / 350 MB, free: 6.504 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.004734, allocations: 0 / 350 MB, free: 6.504 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.472e-05/0.004799, allocations: 53.59 kB / 350.1 MB, free: 6.445 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.137e-05/0.00481, allocations: 4 kB / 350.1 MB, free: 6.441 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.004815, allocations: 3.984 kB / 350.1 MB, free: 6.438 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.004831, allocations: 0 / 350.1 MB, free: 6.438 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.314e-05/0.004864, allocations: 7.938 kB / 350.1 MB, free: 6.43 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.004869, allocations: 0 / 350.1 MB, free: 6.43 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.54e-05/0.004895, allocations: 8.031 kB / 350.1 MB, free: 6.422 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.939e-06/0.0049, allocations: 4 kB / 350.1 MB, free: 6.418 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.694e-05/0.004957, allocations: 156.6 kB / 350.3 MB, free: 6.254 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.081e-05/0.004967, allocations: 7.938 kB / 350.3 MB, free: 6.246 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.064e-05/0.004988, allocations: 8 kB / 350.3 MB, free: 6.238 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.00499, allocations: 7.922 kB / 350.3 MB, free: 6.23 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.004993, allocations: 0 / 350.3 MB, free: 6.23 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.004996, allocations: 0 / 350.3 MB, free: 6.23 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002111/0.005207, allocations: 309.3 kB / 350.6 MB, free: 5.887 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.005209, allocations: 0 / 350.6 MB, free: 5.887 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.24e-05/0.005241, allocations: 7.984 kB / 350.6 MB, free: 5.879 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.005243, allocations: 0 / 350.6 MB, free: 5.879 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.755e-06/0.00525, allocations: 0 / 350.6 MB, free: 5.879 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.005251, allocations: 4 kB / 350.6 MB, free: 5.875 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.005252, allocations: 0 / 350.6 MB, free: 5.875 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001128/0.005365, allocations: 199.9 kB / 350.8 MB, free: 5.66 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.048e-05/0.005376, allocations: 11.89 kB / 350.8 MB, free: 5.648 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.234e-05/0.005388, allocations: 3.938 kB / 350.8 MB, free: 5.645 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.575e-05/0.005444, allocations: 8 kB / 350.8 MB, free: 5.637 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.44e-05/0.005478, allocations: 7.984 kB / 350.8 MB, free: 5.629 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-06/0.005482, allocations: 0 / 350.8 MB, free: 5.629 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.347e-05/0.005516, allocations: 135.5 kB / 350.9 MB, free: 5.496 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005516, allocations: 4 kB / 351 MB, free: 5.492 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002138/0.00573, allocations: 4 kB / 351 MB, free: 5.488 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 6.333e-05/0.005793, allocations: 95.23 kB / 351 MB, free: 5.387 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.643e-05/0.005879, allocations: 23.69 kB / 351.1 MB, free: 5.359 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.005881, allocations: 0 / 351.1 MB, free: 5.359 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.175e-05/0.005903, allocations: 19.84 kB / 351.1 MB, free: 5.336 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002621/0.006165, allocations: 15.88 kB / 351.1 MB, free: 5.32 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000273/0.006438, allocations: 154.3 kB / 351.3 MB, free: 5.141 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.065e-05/0.006479, allocations: 67.25 kB / 351.3 MB, free: 5.055 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 1.764e-05/0.006496, allocations: 7.984 kB / 351.3 MB, free: 5.047 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.262e-05/0.006519, allocations: 8.5 kB / 351.3 MB, free: 5.039 MB / 282.7 MB Notification: Performance of SimCode: time 7.72e-07/0.00652, allocations: 0 / 351.3 MB, free: 5.039 MB / 282.7 MB Notification: Performance of Templates: time 0.003155/0.009675, allocations: 0.5298 MB / 351.9 MB, free: 4.527 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.633545959019102]