Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.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.00153/0.00153, allocations: 109.1 kB / 21.84 MB, free: 88 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.001599/0.001599, allocations: 220.5 kB / 25.13 MB, free: 3.609 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.372/1.372, allocations: 230.4 MB / 258.7 MB, free: 8.047 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.214/0.214, allocations: 46.93 MB / 362 MB, free: 4.223 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.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator") [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.002289/0.002289, allocations: 79.86 kB / 0.4978 GB, free: 7.391 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.2728, allocations: 66.07 MB / 0.5623 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002904/0.2757, allocations: 1.639 MB / 0.5639 GB, free: 2.629 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009152/0.2766, allocations: 0.523 MB / 0.5644 GB, free: 2.102 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.483e-05/0.2767, allocations: 7.938 kB / 0.5644 GB, free: 2.094 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001129/0.2768, allocations: 7.875 kB / 0.5644 GB, free: 2.086 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.164e-05/0.2768, allocations: 15.86 kB / 0.5645 GB, free: 2.07 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001777/0.277, allocations: 35.89 kB / 0.5645 GB, free: 2.035 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001512/0.2772, allocations: 83.77 kB / 0.5646 GB, free: 1.953 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.2773, allocations: 23.05 kB / 0.5646 GB, free: 1.93 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.287e-05/0.2773, allocations: 31.91 kB / 0.5646 GB, free: 1.898 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.51e-05/0.2774, allocations: 31.78 kB / 0.5647 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.055e-05/0.2774, allocations: 8 kB / 0.5647 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.723e-05/0.2774, allocations: 8 kB / 0.5647 GB, free: 1.852 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.461e-05/0.2775, allocations: 11.98 kB / 0.5647 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.299e-05/0.2775, allocations: 43.67 kB / 0.5647 GB, free: 1.797 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001399/0.2777, allocations: 67.44 kB / 0.5648 GB, free: 1.734 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.2777, allocations: 3.938 kB / 0.5648 GB, free: 1.73 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2777, allocations: 0 / 0.5648 GB, free: 1.73 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.2777, allocations: 4 kB / 0.5648 GB, free: 1.727 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.000558/0.2782, allocations: 330.8 kB / 0.5651 GB, free: 1.371 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.2783, allocations: 12.03 kB / 0.5651 GB, free: 1.359 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.387e-05/0.2783, allocations: 8.891 kB / 0.5651 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002253/0.2785, allocations: 138.3 kB / 0.5653 GB, free: 1.191 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.371e-05/0.2785, allocations: 12.36 kB / 0.5653 GB, free: 1.18 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.535e-05/0.2786, allocations: 8.375 kB / 0.5653 GB, free: 1.172 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001417/0.2787, allocations: 73.98 kB / 0.5654 GB, free: 1.094 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.2787, allocations: 0 / 0.5654 GB, free: 1.094 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.886e-05/0.2787, allocations: 15.92 kB / 0.5654 GB, free: 1.078 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.2787, allocations: 0 / 0.5654 GB, free: 1.078 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.373e-05/0.2788, allocations: 31.98 kB / 0.5654 GB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005462/0.2794, allocations: 319.6 kB / 0.5657 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001079/0.2795, allocations: 50.5 kB / 0.5657 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.39e-05/0.2795, allocations: 16.89 kB / 0.5658 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.396e-06/0.2795, allocations: 0 / 0.5658 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001278/0.2796, allocations: 75.41 kB / 0.5658 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/0.2796, allocations: 0 / 0.5658 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002136/0.2799, allocations: 85.52 kB / 0.5659 GB, free: 448 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.935e-05/0.2799, allocations: 51.41 kB / 0.566 GB, free: 384 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001268/0.28, allocations: 144 kB / 0.5661 GB, free: 232 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/0.28, allocations: 29.7 kB / 0.5661 GB, free: 196 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.418e-05/0.2801, allocations: 104.1 kB / 0.5662 GB, free: 88 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.714e-05/0.2801, allocations: 19.97 kB / 0.5663 GB, free: 68 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.449e-05/0.2802, allocations: 29.7 kB / 0.5663 GB, free: 32 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.2803, allocations: 322.8 kB / 0.5666 GB, free: 15.71 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.764e-05/0.2804, allocations: 12 kB / 0.5666 GB, free: 15.7 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.118e-05/0.2804, allocations: 42.56 kB / 0.5666 GB, free: 15.64 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.926e-05/0.2805, allocations: 50.52 kB / 0.5667 GB, free: 15.59 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2805, allocations: 0 / 0.5667 GB, free: 15.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001391/0.2807, allocations: 89.47 kB / 0.5668 GB, free: 15.49 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.2807, allocations: 4 kB / 0.5668 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.2807, allocations: 7.984 kB / 0.5668 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.904e-05/0.2807, allocations: 8 kB / 0.5668 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.034e-05/0.2808, allocations: 12 kB / 0.5668 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.2808, allocations: 0 / 0.5668 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.22e-05/0.2808, allocations: 4 kB / 0.5668 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.405e-05/0.2808, allocations: 11.98 kB / 0.5668 GB, free: 15.45 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,fallingEdge.not_u,$PRE.fallingEdge.not_u,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 9.236e-05/0.2809, allocations: 117.8 kB / 0.5669 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.767e-05/0.281, allocations: 7.953 kB / 0.5669 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.657e-05/0.281, allocations: 16.66 kB / 0.567 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.281, allocations: 4 kB / 0.567 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.281, allocations: 0 / 0.567 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-06/0.281, allocations: 0 / 0.567 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003597/0.2814, allocations: 325.5 kB / 0.5673 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.2814, allocations: 192 / 0.5673 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.869e-05/0.2814, allocations: 4 kB / 0.5673 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.2814, allocations: 7.922 kB / 0.5673 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.2814, allocations: 4 kB / 0.5673 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.2814, allocations: 0 / 0.5673 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.2814, allocations: 0 / 0.5673 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002207/0.2816, allocations: 199.9 kB / 0.5675 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.867e-05/0.2817, allocations: 7.984 kB / 0.5675 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.663e-05/0.2817, allocations: 0 / 0.5675 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.75e-05/0.2818, allocations: 7.984 kB / 0.5675 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.562e-05/0.2818, allocations: 15.92 kB / 0.5675 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.35e-06/0.2818, allocations: 0 / 0.5675 GB, free: 14.66 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.475e-05/0.2819, allocations: 105.6 kB / 0.5676 GB, free: 14.56 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2819, allocations: 4.062 kB / 0.5676 GB, free: 14.55 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002275/0.2821, allocations: 15.94 kB / 0.5676 GB, free: 14.54 MB / 414.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: 5 (integrator.reset,$whenCondition2,$whenCondition1,fallingEdge.not_u,booleanPulse.pulseStart) * Number of discrete states: 1 (fallingEdge.not_u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.899e-05/0.2822, allocations: 99.23 kB / 0.5677 GB, free: 14.43 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001344/0.2823, allocations: 47.91 kB / 0.5678 GB, free: 14.39 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2823, allocations: 0 / 0.5678 GB, free: 14.39 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.873e-05/0.2824, allocations: 27.92 kB / 0.5678 GB, free: 14.36 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002851/0.2827, allocations: 19.92 kB / 0.5678 GB, free: 14.34 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004366/0.2831, allocations: 198.8 kB / 0.568 GB, free: 14.12 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003032/0.2834, allocations: 0.7002 MB / 0.5687 GB, free: 13.39 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.34e-05/0.2835, allocations: 8.422 kB / 0.5687 GB, free: 13.39 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.228e-05/0.2835, allocations: 11.44 kB / 0.5687 GB, free: 13.38 MB / 414.1 MB Notification: Performance of SimCode: time 4.1e-07/0.2835, allocations: 3.938 kB / 0.5687 GB, free: 13.37 MB / 414.1 MB Notification: Performance of Templates: time 0.003454/0.2869, allocations: 0.9702 MB / 0.5697 GB, free: 12.41 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.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.525137427961454]