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.001655/0.001655, allocations: 112.2 kB / 21.19 MB, free: 0.7539 MB / 14.72 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.001674/0.001674, allocations: 213.7 kB / 24.49 MB, free: 4.137 MB / 14.72 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.375/1.375, allocations: 230.6 MB / 258.3 MB, free: 7.973 MB / 206.1 MB " [Timeout remaining time 178] 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.2214/0.2214, allocations: 46.94 MB / 361.6 MB, free: 4.234 MB / 286.1 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 0.001919/0.001919, allocations: 75.83 kB / 0.4974 GB, free: 7.367 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2781/0.28, allocations: 66.02 MB / 0.5619 GB, free: 4.391 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002166/0.2822, allocations: 0.8307 MB / 0.5627 GB, free: 3.562 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001937/0.2824, allocations: 43.83 kB / 0.5627 GB, free: 3.52 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.459e-05/0.2824, allocations: 4 kB / 0.5627 GB, free: 3.516 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001082/0.2825, allocations: 7.922 kB / 0.5627 GB, free: 3.508 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.634e-05/0.2826, allocations: 3.938 kB / 0.5627 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001247/0.2827, allocations: 19.98 kB / 0.5628 GB, free: 3.484 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001141/0.2828, allocations: 43.86 kB / 0.5628 GB, free: 3.441 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.629e-05/0.2829, allocations: 19.62 kB / 0.5628 GB, free: 3.426 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.594e-05/0.2829, allocations: 11.94 kB / 0.5628 GB, free: 3.414 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.166e-05/0.283, allocations: 15.92 kB / 0.5628 GB, free: 3.398 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.192e-05/0.283, allocations: 0 / 0.5628 GB, free: 3.398 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.025e-05/0.283, allocations: 4 kB / 0.5628 GB, free: 3.395 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.627e-05/0.283, allocations: 4 kB / 0.5628 GB, free: 3.391 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.788e-05/0.283, allocations: 15.88 kB / 0.5629 GB, free: 3.375 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001056/0.2831, allocations: 47.75 kB / 0.5629 GB, free: 3.328 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.2831, allocations: 3.938 kB / 0.5629 GB, free: 3.324 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.2831, allocations: 0 / 0.5629 GB, free: 3.324 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.2831, allocations: 4 kB / 0.5629 GB, free: 3.32 MB / 398.1 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.0003876/0.2835, allocations: 281.8 kB / 0.5632 GB, free: 3.012 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.914e-05/0.2836, allocations: 8.031 kB / 0.5632 GB, free: 3.004 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.307e-05/0.2836, allocations: 8.891 kB / 0.5632 GB, free: 2.996 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001755/0.2838, allocations: 118.5 kB / 0.5633 GB, free: 2.855 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.03e-05/0.2838, allocations: 384 / 0.5633 GB, free: 2.855 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.251e-05/0.2838, allocations: 12.36 kB / 0.5633 GB, free: 2.844 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001141/0.2839, allocations: 50.25 kB / 0.5634 GB, free: 2.789 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.2839, allocations: 192 / 0.5634 GB, free: 2.789 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.388e-05/0.2839, allocations: 11.94 kB / 0.5634 GB, free: 2.777 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.2839, allocations: 0 / 0.5634 GB, free: 2.777 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.599e-05/0.284, allocations: 23.91 kB / 0.5634 GB, free: 2.754 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004734/0.2845, allocations: 255.8 kB / 0.5637 GB, free: 2.461 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.892e-05/0.2845, allocations: 30.5 kB / 0.5637 GB, free: 2.422 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.832e-05/0.2845, allocations: 12.86 kB / 0.5637 GB, free: 2.406 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.768e-06/0.2845, allocations: 0 / 0.5637 GB, free: 2.406 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.996e-05/0.2846, allocations: 55.42 kB / 0.5637 GB, free: 2.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.2846, allocations: 0 / 0.5637 GB, free: 2.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001302/0.2848, allocations: 49.62 kB / 0.5638 GB, free: 2.285 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.766e-05/0.2848, allocations: 55.41 kB / 0.5638 GB, free: 2.219 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.46e-05/0.2849, allocations: 113.8 kB / 0.564 GB, free: 2.098 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.628e-05/0.2849, allocations: 29.7 kB / 0.564 GB, free: 2.062 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.322e-05/0.285, allocations: 92.09 kB / 0.5641 GB, free: 1.969 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.299e-05/0.285, allocations: 7.938 kB / 0.5641 GB, free: 1.961 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.359e-05/0.285, allocations: 17.72 kB / 0.5641 GB, free: 1.938 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.2851, allocations: 318.8 kB / 0.5644 GB, free: 1.617 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.78e-05/0.2851, allocations: 11.92 kB / 0.5644 GB, free: 1.605 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.825e-05/0.2852, allocations: 21.72 kB / 0.5644 GB, free: 1.578 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.204e-05/0.2852, allocations: 29.66 kB / 0.5645 GB, free: 1.543 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.2852, allocations: 384 / 0.5645 GB, free: 1.543 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.818e-05/0.2853, allocations: 49.69 kB / 0.5645 GB, free: 1.488 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.04e-05/0.2853, allocations: 4 kB / 0.5645 GB, free: 1.484 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.2853, allocations: 0 / 0.5645 GB, free: 1.484 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.088e-05/0.2853, allocations: 3.938 kB / 0.5645 GB, free: 1.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.219e-05/0.2854, allocations: 8 kB / 0.5645 GB, free: 1.473 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.2854, allocations: 3.938 kB / 0.5645 GB, free: 1.469 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.124e-05/0.2854, allocations: 11.94 kB / 0.5645 GB, free: 1.457 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.239e-06/0.2854, allocations: 7.969 kB / 0.5645 GB, free: 1.449 MB / 398.1 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.808e-05/0.2855, allocations: 109.8 kB / 0.5647 GB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.756e-06/0.2855, allocations: 0 / 0.5647 GB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.761e-05/0.2855, allocations: 12.33 kB / 0.5647 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.2855, allocations: 0 / 0.5647 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.2855, allocations: 0 / 0.5647 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.2855, allocations: 3.984 kB / 0.5647 GB, free: 1.309 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002753/0.2858, allocations: 277.5 kB / 0.5649 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2858, allocations: 4 kB / 0.5649 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.802e-05/0.2858, allocations: 0 / 0.5649 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.2858, allocations: 4 kB / 0.5649 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-06/0.2858, allocations: 0 / 0.5649 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.2858, allocations: 3.938 kB / 0.5649 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.2858, allocations: 0 / 0.5649 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001343/0.286, allocations: 143.5 kB / 0.5651 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.626e-05/0.286, allocations: 15.97 kB / 0.5651 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.314e-05/0.286, allocations: 4.062 kB / 0.5651 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.713e-05/0.2861, allocations: 7.938 kB / 0.5651 GB, free: 0.793 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.017e-05/0.2861, allocations: 0 / 0.5651 GB, free: 0.793 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.711e-06/0.2861, allocations: 4 kB / 0.5651 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.421e-05/0.2861, allocations: 95.2 kB / 0.5652 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2861, allocations: 0 / 0.5652 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002122/0.2864, allocations: 4 kB / 0.5652 GB, free: 0.6914 MB / 398.1 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 8.836e-05/0.2864, allocations: 95.25 kB / 0.5653 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.4e-05/0.2865, allocations: 23.98 kB / 0.5653 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2865, allocations: 3.938 kB / 0.5653 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.819e-05/0.2865, allocations: 7.938 kB / 0.5653 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002526/0.2868, allocations: 12.27 kB / 0.5653 GB, free: 0.543 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002948/0.2871, allocations: 167.1 kB / 0.5655 GB, free: 356 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002973/0.2874, allocations: 0.6846 MB / 0.5662 GB, free: 15.64 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.398e-05/0.2874, allocations: 11.44 kB / 0.5662 GB, free: 15.62 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2874, allocations: 0 / 0.5662 GB, free: 15.62 MB / 414.1 MB Notification: Performance of Templates: time 0.002203/0.2896, allocations: 0.723 MB / 0.5669 GB, free: 14.9 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_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: 6.932333059143275]