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.007526/0.007526, allocations: 106.8 kB / 21.98 MB, free: 5.223 MB / 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.001826/0.001826, allocations: 216.6 kB / 25.29 MB, free: 3.203 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.454/1.454, allocations: 230.5 MB / 258.9 MB, free: 8.016 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.2258/0.2258, allocations: 46.93 MB / 362.3 MB, free: 4.195 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.00228/0.00228, allocations: 75.88 kB / 0.4982 GB, free: 7.273 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3248/0.3271, allocations: 66.08 MB / 0.5627 GB, free: 4.234 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002128/0.3292, allocations: 0.824 MB / 0.5635 GB, free: 3.414 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002132/0.3295, allocations: 51.75 kB / 0.5636 GB, free: 3.363 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.353e-05/0.3295, allocations: 4 kB / 0.5636 GB, free: 3.359 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001018/0.3296, allocations: 7.938 kB / 0.5636 GB, free: 3.352 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.714e-05/0.3297, allocations: 3.938 kB / 0.5636 GB, free: 3.348 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001377/0.3298, allocations: 19.98 kB / 0.5636 GB, free: 3.328 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001214/0.3299, allocations: 39.84 kB / 0.5636 GB, free: 3.289 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.33, allocations: 23.64 kB / 0.5637 GB, free: 3.27 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.962e-05/0.3301, allocations: 11.92 kB / 0.5637 GB, free: 3.258 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.845e-05/0.3301, allocations: 11.92 kB / 0.5637 GB, free: 3.246 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.729e-05/0.3301, allocations: 4 kB / 0.5637 GB, free: 3.242 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.157e-05/0.3301, allocations: 4 kB / 0.5637 GB, free: 3.238 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.988e-05/0.3302, allocations: 4 kB / 0.5637 GB, free: 3.234 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.646e-05/0.3302, allocations: 19.88 kB / 0.5637 GB, free: 3.215 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001138/0.3303, allocations: 43.81 kB / 0.5638 GB, free: 3.172 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.3303, allocations: 0 / 0.5638 GB, free: 3.172 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3303, allocations: 4 kB / 0.5638 GB, free: 3.168 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.3303, allocations: 0 / 0.5638 GB, free: 3.168 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.0004497/0.3308, allocations: 285.7 kB / 0.564 GB, free: 2.855 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.3308, allocations: 8.031 kB / 0.564 GB, free: 2.848 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.297e-05/0.3308, allocations: 8.891 kB / 0.5641 GB, free: 2.84 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001921/0.331, allocations: 114.5 kB / 0.5642 GB, free: 2.703 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.51e-05/0.331, allocations: 8.375 kB / 0.5642 GB, free: 2.695 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.171e-05/0.3311, allocations: 4.375 kB / 0.5642 GB, free: 2.691 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001353/0.3312, allocations: 50.25 kB / 0.5642 GB, free: 2.637 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.3312, allocations: 4.188 kB / 0.5642 GB, free: 2.633 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.44e-05/0.3312, allocations: 3.938 kB / 0.5642 GB, free: 2.629 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.3312, allocations: 0 / 0.5642 GB, free: 2.629 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.744e-05/0.3313, allocations: 19.92 kB / 0.5643 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005004/0.3318, allocations: 259.8 kB / 0.5645 GB, free: 2.312 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.16e-05/0.3318, allocations: 30.58 kB / 0.5645 GB, free: 2.273 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.722e-05/0.3319, allocations: 8.797 kB / 0.5645 GB, free: 2.262 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.267e-05/0.3319, allocations: 3.984 kB / 0.5645 GB, free: 2.258 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.492e-05/0.332, allocations: 51.44 kB / 0.5646 GB, free: 2.195 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.332, allocations: 0 / 0.5646 GB, free: 2.195 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001365/0.3321, allocations: 45.69 kB / 0.5646 GB, free: 2.145 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.3321, allocations: 55.41 kB / 0.5647 GB, free: 2.078 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.676e-05/0.3322, allocations: 129.7 kB / 0.5648 GB, free: 1.941 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.274e-05/0.3323, allocations: 25.7 kB / 0.5648 GB, free: 1.91 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.308e-05/0.3323, allocations: 92.09 kB / 0.5649 GB, free: 1.816 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.272e-05/0.3323, allocations: 11.89 kB / 0.5649 GB, free: 1.805 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.495e-05/0.3324, allocations: 17.7 kB / 0.565 GB, free: 1.781 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.3325, allocations: 318.8 kB / 0.5653 GB, free: 1.461 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.876e-05/0.3325, allocations: 8 kB / 0.5653 GB, free: 1.453 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.194e-05/0.3325, allocations: 21.7 kB / 0.5653 GB, free: 1.426 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.875e-05/0.3326, allocations: 21.72 kB / 0.5653 GB, free: 1.398 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.3326, allocations: 4 kB / 0.5653 GB, free: 1.395 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.983e-05/0.3327, allocations: 53.91 kB / 0.5654 GB, free: 1.336 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.3327, allocations: 8 kB / 0.5654 GB, free: 1.328 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.3327, allocations: 0 / 0.5654 GB, free: 1.328 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.3327, allocations: 4.031 kB / 0.5654 GB, free: 1.324 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.142e-05/0.3327, allocations: 8.031 kB / 0.5654 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.3327, allocations: 0 / 0.5654 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.937e-05/0.3328, allocations: 7.953 kB / 0.5654 GB, free: 1.309 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.801e-06/0.3328, allocations: 3.938 kB / 0.5654 GB, free: 1.305 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 9.231e-05/0.3329, allocations: 117.8 kB / 0.5655 GB, free: 1.18 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.231e-05/0.3329, allocations: 3.984 kB / 0.5655 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.602e-05/0.3329, allocations: 8 kB / 0.5655 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.3329, allocations: 0 / 0.5655 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.3329, allocations: 0 / 0.5655 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.3329, allocations: 4 kB / 0.5655 GB, free: 1.156 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002909/0.3332, allocations: 277.6 kB / 0.5658 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3332, allocations: 0 / 0.5658 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.943e-05/0.3332, allocations: 3.938 kB / 0.5658 GB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.3332, allocations: 0 / 0.5658 GB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/0.3332, allocations: 4 kB / 0.5658 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.3332, allocations: 3.938 kB / 0.5658 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3332, allocations: 0 / 0.5658 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001515/0.3334, allocations: 147.5 kB / 0.5659 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.037e-05/0.3334, allocations: 4.328 kB / 0.5659 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.589e-05/0.3334, allocations: 8.031 kB / 0.5659 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.801e-05/0.3335, allocations: 7.922 kB / 0.566 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.572e-05/0.3335, allocations: 0 / 0.566 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-06/0.3335, allocations: 7.938 kB / 0.566 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.658e-05/0.3336, allocations: 95.27 kB / 0.5661 GB, free: 0.543 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3336, allocations: 0 / 0.5661 GB, free: 0.543 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002096/0.3338, allocations: 7.938 kB / 0.5661 GB, free: 0.5352 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.886e-05/0.3339, allocations: 99.25 kB / 0.5662 GB, free: 440 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.699e-05/0.334, allocations: 15.98 kB / 0.5662 GB, free: 424 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.334, allocations: 4 kB / 0.5662 GB, free: 420 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.698e-05/0.334, allocations: 4 kB / 0.5662 GB, free: 416 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002487/0.3342, allocations: 15.92 kB / 0.5662 GB, free: 400 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003261/0.3346, allocations: 171.1 kB / 0.5664 GB, free: 196 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000332/0.3349, allocations: 0.6885 MB / 0.567 GB, free: 15.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.596e-05/0.3349, allocations: 11.44 kB / 0.567 GB, free: 15.46 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3349, allocations: 0 / 0.567 GB, free: 15.46 MB / 414.1 MB Notification: Performance of Templates: time 0.002186/0.3371, allocations: 0.727 MB / 0.5677 GB, free: 14.74 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 -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: 7.364240715047345]