Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001264/0.001264, allocations: 113.1 kB / 21.85 MB, free: 64 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001679/0.001679, allocations: 206.6 kB / 25.13 MB, free: 3.574 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 230.4 MB / 258.7 MB, free: 8.066 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.212/0.212, allocations: 46.93 MB / 362 MB, free: 4.238 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-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002298/0.002298, allocations: 80.14 kB / 0.4978 GB, free: 7.41 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2717/0.274, allocations: 66.08 MB / 0.5623 GB, free: 4.266 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.00215/0.2762, allocations: 0.8267 MB / 0.5631 GB, free: 3.445 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001937/0.2764, allocations: 47.88 kB / 0.5632 GB, free: 3.398 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.057e-05/0.2764, allocations: 3.938 kB / 0.5632 GB, free: 3.395 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000104/0.2765, allocations: 3.938 kB / 0.5632 GB, free: 3.391 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.707e-05/0.2765, allocations: 3.938 kB / 0.5632 GB, free: 3.387 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000138/0.2767, allocations: 23.92 kB / 0.5632 GB, free: 3.363 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001155/0.2768, allocations: 39.86 kB / 0.5632 GB, free: 3.324 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.604e-05/0.2769, allocations: 23.62 kB / 0.5633 GB, free: 3.305 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.612e-05/0.2769, allocations: 11.94 kB / 0.5633 GB, free: 3.293 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.707e-05/0.277, allocations: 15.92 kB / 0.5633 GB, free: 3.277 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.818e-05/0.277, allocations: 4 kB / 0.5633 GB, free: 3.273 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.296e-06/0.277, allocations: 0 / 0.5633 GB, free: 3.273 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.945e-05/0.277, allocations: 8 kB / 0.5633 GB, free: 3.266 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.285e-05/0.277, allocations: 23.86 kB / 0.5633 GB, free: 3.242 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 9.456e-05/0.2771, allocations: 31.83 kB / 0.5634 GB, free: 3.211 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.2771, allocations: 0 / 0.5634 GB, free: 3.211 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2771, allocations: 0 / 0.5634 GB, free: 3.211 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.217e-06/0.2772, allocations: 0 / 0.5634 GB, free: 3.211 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.0004087/0.2776, allocations: 289.8 kB / 0.5636 GB, free: 2.895 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.146e-05/0.2776, allocations: 8.031 kB / 0.5636 GB, free: 2.887 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.292e-05/0.2776, allocations: 8.891 kB / 0.5636 GB, free: 2.879 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001882/0.2778, allocations: 122.5 kB / 0.5638 GB, free: 2.734 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.2778, allocations: 4.375 kB / 0.5638 GB, free: 2.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.618e-05/0.2778, allocations: 4.375 kB / 0.5638 GB, free: 2.727 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001088/0.278, allocations: 58.22 kB / 0.5638 GB, free: 2.664 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.278, allocations: 192 / 0.5638 GB, free: 2.664 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.278, allocations: 7.938 kB / 0.5638 GB, free: 2.656 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.938e-06/0.278, allocations: 0 / 0.5638 GB, free: 2.656 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.42e-05/0.278, allocations: 12 kB / 0.5638 GB, free: 2.645 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004603/0.2785, allocations: 267.7 kB / 0.5641 GB, free: 2.34 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.833e-05/0.2785, allocations: 22.58 kB / 0.5641 GB, free: 2.309 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.636e-05/0.2786, allocations: 4.859 kB / 0.5641 GB, free: 2.301 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.899e-06/0.2786, allocations: 4.062 kB / 0.5641 GB, free: 2.297 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.573e-05/0.2786, allocations: 59.3 kB / 0.5642 GB, free: 2.227 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.2786, allocations: 0 / 0.5642 GB, free: 2.227 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001332/0.2788, allocations: 49.69 kB / 0.5642 GB, free: 2.172 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.889e-05/0.2788, allocations: 51.41 kB / 0.5643 GB, free: 2.109 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001043/0.2789, allocations: 117.8 kB / 0.5644 GB, free: 1.984 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.721e-05/0.2789, allocations: 25.7 kB / 0.5644 GB, free: 1.953 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.349e-05/0.279, allocations: 100.1 kB / 0.5645 GB, free: 1.852 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.38e-05/0.279, allocations: 7.953 kB / 0.5645 GB, free: 1.844 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.965e-05/0.279, allocations: 17.66 kB / 0.5645 GB, free: 1.82 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.2792, allocations: 326.8 kB / 0.5649 GB, free: 1.492 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.435e-05/0.2792, allocations: 0 / 0.5649 GB, free: 1.492 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.073e-05/0.2792, allocations: 25.66 kB / 0.5649 GB, free: 1.461 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.204e-05/0.2793, allocations: 26 kB / 0.5649 GB, free: 1.43 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.2793, allocations: 0 / 0.5649 GB, free: 1.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001026/0.2794, allocations: 61.61 kB / 0.565 GB, free: 1.363 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.2794, allocations: 6.188 kB / 0.565 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.2794, allocations: 0 / 0.565 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.2794, allocations: 0 / 0.565 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.311e-05/0.2794, allocations: 7.984 kB / 0.565 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.2794, allocations: 0 / 0.565 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.985e-05/0.2795, allocations: 7.953 kB / 0.565 GB, free: 1.344 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.3e-06/0.2795, allocations: 3.938 kB / 0.565 GB, free: 1.34 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 8.317e-05/0.2796, allocations: 117.9 kB / 0.5651 GB, free: 1.215 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.093e-05/0.2796, allocations: 4 kB / 0.5651 GB, free: 1.211 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.176e-05/0.2796, allocations: 4 kB / 0.5651 GB, free: 1.199 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.2796, allocations: 0 / 0.5651 GB, free: 1.199 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.2796, allocations: 3.984 kB / 0.5651 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.2796, allocations: 0 / 0.5651 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003003/0.2799, allocations: 277.5 kB / 0.5654 GB, free: 0.875 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.2799, allocations: 0 / 0.5654 GB, free: 0.875 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.97e-05/0.2799, allocations: 4 kB / 0.5654 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.2799, allocations: 8 kB / 0.5654 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.241e-06/0.2799, allocations: 0 / 0.5654 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.2799, allocations: 3.938 kB / 0.5654 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.28, allocations: 3.984 kB / 0.5654 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001408/0.2801, allocations: 147.5 kB / 0.5655 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.659e-05/0.2801, allocations: 7.984 kB / 0.5655 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.178e-05/0.2801, allocations: 0 / 0.5655 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.881e-05/0.2802, allocations: 4 kB / 0.5655 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.618e-05/0.2802, allocations: 7.984 kB / 0.5656 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.556e-06/0.2802, allocations: 4 kB / 0.5656 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.812e-05/0.2803, allocations: 95.59 kB / 0.5656 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2803, allocations: 0 / 0.5656 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002266/0.2805, allocations: 4 kB / 0.5657 GB, free: 0.5742 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 7.558e-05/0.2806, allocations: 99.17 kB / 0.5657 GB, free: 480 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.353e-05/0.2807, allocations: 19.94 kB / 0.5658 GB, free: 460 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.2807, allocations: 4.062 kB / 0.5658 GB, free: 456 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.146e-05/0.2807, allocations: 7.984 kB / 0.5658 GB, free: 448 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002464/0.2809, allocations: 8 kB / 0.5658 GB, free: 440 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000287/0.2812, allocations: 145.5 kB / 0.5659 GB, free: 268 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003214/0.2815, allocations: 0.6807 MB / 0.5666 GB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.785e-05/0.2816, allocations: 4 kB / 0.5666 GB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.129e-05/0.2816, allocations: 7.438 kB / 0.5666 GB, free: 15.54 MB / 414.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2816, allocations: 0 / 0.5666 GB, free: 15.54 MB / 414.1 MB Notification: Performance of Templates: time 0.002835/0.2844, allocations: 0.5358 MB / 0.5671 GB, free: 15.01 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_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-beta.om_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.495450407965109]