Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.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.001362/0.001362, allocations: 99.66 kB / 21.18 MB, free: 0.5273 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.002119/0.002119, allocations: 213.2 kB / 24.48 MB, free: 3.84 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.566/1.566, allocations: 230.6 MB / 258.2 MB, free: 7.805 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.2269/0.2269, allocations: 46.95 MB / 361.6 MB, free: 4.141 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.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002049/0.002049, allocations: 63.89 kB / 0.4973 GB, free: 7.262 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3331/0.3352, allocations: 66.03 MB / 0.5618 GB, free: 4.195 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001698/0.3369, allocations: 491.9 kB / 0.5623 GB, free: 3.715 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006914/0.3376, allocations: 261.5 kB / 0.5625 GB, free: 3.461 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.457e-05/0.3376, allocations: 4 kB / 0.5625 GB, free: 3.457 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.567e-05/0.3376, allocations: 0 / 0.5625 GB, free: 3.457 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.801e-06/0.3376, allocations: 4 kB / 0.5625 GB, free: 3.453 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:398:3-453:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003252/0.3379, allocations: 51.83 kB / 0.5626 GB, free: 3.402 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.934e-05/0.338, allocations: 0 / 0.5626 GB, free: 3.402 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.167e-05/0.338, allocations: 7.969 kB / 0.5626 GB, free: 3.395 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.535e-05/0.3381, allocations: 0 / 0.5626 GB, free: 3.395 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.242e-05/0.3381, allocations: 4 kB / 0.5626 GB, free: 3.391 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.353e-06/0.3381, allocations: 0 / 0.5626 GB, free: 3.391 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001548/0.3382, allocations: 59.95 kB / 0.5626 GB, free: 3.332 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.037e-05/0.3383, allocations: 4 kB / 0.5626 GB, free: 3.328 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.898e-05/0.3383, allocations: 4 kB / 0.5626 GB, free: 3.324 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001365/0.3384, allocations: 63.59 kB / 0.5627 GB, free: 3.266 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3384, allocations: 0 / 0.5627 GB, free: 3.266 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3384, allocations: 0 / 0.5627 GB, free: 3.266 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.03e-06/0.3384, allocations: 0 / 0.5627 GB, free: 3.266 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000418/0.3388, allocations: 284.7 kB / 0.563 GB, free: 2.957 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.3389, allocations: 12.03 kB / 0.563 GB, free: 2.945 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.188e-05/0.3389, allocations: 0.9375 kB / 0.563 GB, free: 2.945 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001017/0.339, allocations: 106.5 kB / 0.5631 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.677e-06/0.339, allocations: 384 / 0.5631 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.356e-05/0.339, allocations: 8.375 kB / 0.5631 GB, free: 2.809 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001068/0.3391, allocations: 55.95 kB / 0.5631 GB, free: 2.742 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.3392, allocations: 192 / 0.5631 GB, free: 2.742 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.185e-05/0.3392, allocations: 7.938 kB / 0.5632 GB, free: 2.734 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.3392, allocations: 0 / 0.5632 GB, free: 2.734 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.093e-05/0.3392, allocations: 25.7 kB / 0.5632 GB, free: 2.703 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001379/0.3393, allocations: 101.3 kB / 0.5633 GB, free: 2.574 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.345e-05/0.3394, allocations: 44.22 kB / 0.5633 GB, free: 2.516 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.131e-05/0.3394, allocations: 34.64 kB / 0.5634 GB, free: 2.473 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.214e-05/0.3394, allocations: 7.984 kB / 0.5634 GB, free: 2.465 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.258e-05/0.3395, allocations: 60.27 kB / 0.5634 GB, free: 2.391 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.3395, allocations: 0 / 0.5634 GB, free: 2.391 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000218/0.3397, allocations: 122.7 kB / 0.5635 GB, free: 2.246 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000116/0.3398, allocations: 77.11 kB / 0.5636 GB, free: 2.152 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.692e-05/0.3399, allocations: 97.81 kB / 0.5637 GB, free: 2.047 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.824e-05/0.3399, allocations: 29.64 kB / 0.5637 GB, free: 2.012 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.607e-05/0.34, allocations: 80.14 kB / 0.5638 GB, free: 1.93 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.891e-05/0.34, allocations: 3.938 kB / 0.5638 GB, free: 1.926 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.247e-05/0.34, allocations: 17.72 kB / 0.5638 GB, free: 1.902 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.3402, allocations: 310.8 kB / 0.5641 GB, free: 1.59 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.38e-05/0.3402, allocations: 25.83 kB / 0.5641 GB, free: 1.559 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.494e-05/0.3402, allocations: 33.7 kB / 0.5642 GB, free: 1.52 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001081/0.3403, allocations: 60.25 kB / 0.5642 GB, free: 1.445 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.3403, allocations: 0 / 0.5642 GB, free: 1.445 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.658e-05/0.3404, allocations: 89.11 kB / 0.5643 GB, free: 1.34 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.693e-05/0.3404, allocations: 33.7 kB / 0.5644 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.3404, allocations: 0 / 0.5644 GB, free: 1.301 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.3405, allocations: 3.984 kB / 0.5644 GB, free: 1.297 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.881e-06/0.3405, allocations: 11.88 kB / 0.5644 GB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.3405, allocations: 96 / 0.5644 GB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.456e-05/0.3405, allocations: 4 kB / 0.5644 GB, free: 1.281 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.275e-06/0.3405, allocations: 4 kB / 0.5644 GB, free: 1.277 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.348e-05/0.3406, allocations: 131.5 kB / 0.5645 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.394e-06/0.3406, allocations: 3.938 kB / 0.5645 GB, free: 1.129 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.188e-05/0.3406, allocations: 7 kB / 0.5645 GB, free: 1.121 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.3406, allocations: 3.938 kB / 0.5645 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.3406, allocations: 0 / 0.5645 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.633e-06/0.3406, allocations: 0 / 0.5645 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.401e-05/0.3407, allocations: 101.3 kB / 0.5646 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.3407, allocations: 0 / 0.5646 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.147e-06/0.3407, allocations: 8 kB / 0.5646 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-06/0.3407, allocations: 0 / 0.5646 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.891e-06/0.3407, allocations: 0 / 0.5646 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.51e-07/0.3407, allocations: 0 / 0.5646 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.359e-06/0.3407, allocations: 3.938 kB / 0.5646 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001174/0.3408, allocations: 116.5 kB / 0.5647 GB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.137e-06/0.3408, allocations: 0 / 0.5647 GB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.348e-05/0.3409, allocations: 7.938 kB / 0.5647 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.916e-06/0.3409, allocations: 0 / 0.5647 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.731e-05/0.3409, allocations: 3.938 kB / 0.5647 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-06/0.3409, allocations: 4.031 kB / 0.5648 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.1e-05/0.3409, allocations: 75.28 kB / 0.5648 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3409, allocations: 0 / 0.5648 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002526/0.3412, allocations: 31.86 kB / 0.5649 GB, free: 0.7109 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0007012/0.3419, allocations: 293.2 kB / 0.5651 GB, free: 0.5 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001347/0.342, allocations: 114.8 kB / 0.5652 GB, free: 372 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.342, allocations: 0 / 0.5652 GB, free: 372 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.148e-05/0.3421, allocations: 85.09 kB / 0.5653 GB, free: 268 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001275/0.3422, allocations: 0 / 0.5653 GB, free: 268 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000245/0.3425, allocations: 140.5 kB / 0.5655 GB, free: 88 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.197e-05/0.3425, allocations: 63.28 kB / 0.5655 GB, free: 4 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.814e-05/0.3426, allocations: 7.438 kB / 0.5655 GB, free: 16 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3426, allocations: 0 / 0.5655 GB, free: 16 MB / 414.1 MB Notification: Performance of Templates: time 0.002724/0.3453, allocations: 0.956 MB / 0.5665 GB, free: 15.04 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.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.599879098124802]