Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.0009366/0.0009366, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001327/0.002263, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0008464/0.0008464, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001151/0.001997, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.134/1.134, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1206/1.255, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3214/0.3214, allocations: 32.78 MB / 276.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02768/0.3491, allocations: 12.53 MB / 289.3 MB, free: 8.68 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 0 / 290.6 MB, free: 7.676 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.761e-05/2.935e-05, allocations: 2.312 kB / 290.6 MB, free: 7.672 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.002611/0.00264, allocations: 0.5359 MB / 291.1 MB, free: 7.262 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006009/0.003241, allocations: 270.5 kB / 291.4 MB, free: 7.074 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.318e-05/0.003264, allocations: 0 / 291.4 MB, free: 7.074 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.448e-06/0.003274, allocations: 0 / 291.4 MB, free: 7.074 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 3.116e-06/0.003277, allocations: 0 / 291.4 MB, free: 7.074 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:399:3-454: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.0002895/0.003567, allocations: 57.84 kB / 291.4 MB, free: 7.031 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 7.838e-05/0.003645, allocations: 1.406 kB / 291.4 MB, free: 7.031 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.467e-05/0.00369, allocations: 5.672 kB / 291.4 MB, free: 7.027 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.821e-05/0.003728, allocations: 1.312 kB / 291.4 MB, free: 7.027 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.891e-05/0.003767, allocations: 1.344 kB / 291.4 MB, free: 7.027 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.308e-05/0.00378, allocations: 4 kB / 291.4 MB, free: 7.023 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001906/0.00397, allocations: 63.52 kB / 291.5 MB, free: 6.996 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.139e-05/0.003982, allocations: 3.984 kB / 291.5 MB, free: 6.992 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.402e-05/0.003996, allocations: 1.25 kB / 291.5 MB, free: 6.992 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001543/0.00415, allocations: 59.83 kB / 291.6 MB, free: 6.961 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.71e-05/0.004167, allocations: 0 / 291.6 MB, free: 6.961 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.004169, allocations: 0 / 291.6 MB, free: 6.961 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.795e-05/0.004187, allocations: 1.094 kB / 291.6 MB, free: 6.961 MB / 282.7 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.0003399/0.004526, allocations: 265 kB / 291.8 MB, free: 6.684 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.004566, allocations: 10.06 kB / 291.8 MB, free: 6.684 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.002e-05/0.004606, allocations: 6.625 kB / 291.8 MB, free: 6.68 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.745e-05/0.004684, allocations: 107.3 kB / 292 MB, free: 6.551 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.004695, allocations: 384 / 292 MB, free: 6.551 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.063e-06/0.004702, allocations: 1.594 kB / 292 MB, free: 6.551 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.735e-05/0.004799, allocations: 55.53 kB / 292 MB, free: 6.488 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/0.004808, allocations: 4.125 kB / 292 MB, free: 6.484 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.041e-06/0.004814, allocations: 384 / 292 MB, free: 6.484 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.004821, allocations: 384 / 292 MB, free: 6.484 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.647e-05/0.004847, allocations: 32.83 kB / 292 MB, free: 6.449 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.169e-05/0.004929, allocations: 66.81 kB / 292.1 MB, free: 6.371 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.182e-05/0.004981, allocations: 50.09 kB / 292.2 MB, free: 6.309 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.865e-05/0.004999, allocations: 33.12 kB / 292.2 MB, free: 6.27 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.248e-06/0.005004, allocations: 0 / 292.2 MB, free: 6.27 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.128e-05/0.005045, allocations: 58.48 kB / 292.2 MB, free: 6.199 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.005046, allocations: 0 / 292.2 MB, free: 6.199 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001577/0.005203, allocations: 117.1 kB / 292.4 MB, free: 6.066 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.632e-05/0.00525, allocations: 79.23 kB / 292.4 MB, free: 5.973 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.897e-05/0.005289, allocations: 89.86 kB / 292.5 MB, free: 5.875 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.121e-05/0.0053, allocations: 25.7 kB / 292.6 MB, free: 5.844 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.823e-05/0.005328, allocations: 81.36 kB / 292.6 MB, free: 5.762 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.687e-05/0.005345, allocations: 5.375 kB / 292.6 MB, free: 5.758 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.6e-05/0.005381, allocations: 15.14 kB / 292.7 MB, free: 5.738 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.996e-05/0.005481, allocations: 320 kB / 293 MB, free: 5.418 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.89e-05/0.00551, allocations: 32.17 kB / 293 MB, free: 5.383 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.635e-05/0.005526, allocations: 26.98 kB / 293 MB, free: 5.352 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.564e-05/0.005582, allocations: 63.77 kB / 293.1 MB, free: 5.277 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.005585, allocations: 1.094 kB / 293.1 MB, free: 5.277 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.855e-05/0.005663, allocations: 86.09 kB / 293.2 MB, free: 5.18 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.259e-05/0.005706, allocations: 31.64 kB / 293.2 MB, free: 5.148 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.005711, allocations: 4.094 kB / 293.2 MB, free: 5.145 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.005722, allocations: 5.797 kB / 293.2 MB, free: 5.141 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.09e-06/0.005727, allocations: 0 / 293.2 MB, free: 5.141 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.787e-06/0.005731, allocations: 0 / 293.2 MB, free: 5.141 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.061e-05/0.005752, allocations: 1.5 kB / 293.2 MB, free: 5.141 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.087e-06/0.005761, allocations: 0 / 293.2 MB, free: 5.141 MB / 282.7 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 8.418e-05/0.005845, allocations: 142.3 kB / 293.4 MB, free: 4.988 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.476e-06/0.005853, allocations: 1.438 kB / 293.4 MB, free: 4.988 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.939e-06/0.005863, allocations: 4.25 kB / 293.4 MB, free: 4.988 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.005865, allocations: 0 / 293.4 MB, free: 4.988 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.005867, allocations: 4 kB / 293.4 MB, free: 4.984 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.00587, allocations: 1.25 kB / 293.4 MB, free: 4.984 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.321e-05/0.005933, allocations: 71.66 kB / 293.4 MB, free: 4.898 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.005935, allocations: 1.312 kB / 293.4 MB, free: 4.898 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.61e-07/0.005936, allocations: 3.938 kB / 293.4 MB, free: 4.895 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.22e-06/0.005942, allocations: 1.25 kB / 293.4 MB, free: 4.895 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.552e-06/0.005943, allocations: 3.938 kB / 293.4 MB, free: 4.891 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.201e-06/0.005949, allocations: 5.016 kB / 293.4 MB, free: 4.887 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.00595, allocations: 0 / 293.4 MB, free: 4.887 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.005952, allocations: 1.656 kB / 293.4 MB, free: 4.887 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.532e-05/0.006048, allocations: 121.2 kB / 293.6 MB, free: 4.746 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.227e-05/0.00606, allocations: 1.219 kB / 293.6 MB, free: 4.746 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.032e-05/0.00607, allocations: 1.219 kB / 293.6 MB, free: 4.746 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.947e-06/0.006079, allocations: 0 / 293.6 MB, free: 4.746 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.877e-06/0.006083, allocations: 1.312 kB / 293.6 MB, free: 4.746 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.887e-06/0.006092, allocations: 4.859 kB / 293.6 MB, free: 4.738 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.006092, allocations: 1.281 kB / 293.6 MB, free: 4.738 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001846/0.006277, allocations: 22.81 kB / 293.6 MB, free: 4.73 MB / 282.7 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.0009665/0.007243, allocations: 370.4 kB / 294 MB, free: 4.594 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001411/0.007384, allocations: 121.5 kB / 294.1 MB, free: 4.453 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.992e-06/0.00739, allocations: 1.156 kB / 294.1 MB, free: 4.453 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.606e-05/0.007436, allocations: 89.42 kB / 294.2 MB, free: 4.348 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.313e-05/0.007509, allocations: 11.38 kB / 294.2 MB, free: 4.34 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001962/0.007706, allocations: 104.9 kB / 294.3 MB, free: 4.211 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.658e-05/0.007742, allocations: 56.78 kB / 294.3 MB, free: 4.137 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.364e-06/0.007749, allocations: 0 / 294.3 MB, free: 4.137 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.975e-05/0.007799, allocations: 51.53 kB / 294.4 MB, free: 4.09 MB / 282.7 MB Notification: Performance of SimCode: time 1.754e-06/0.007801, allocations: 1.562 kB / 294.4 MB, free: 4.09 MB / 282.7 MB Notification: Performance of Templates: time 0.00313/0.01093, allocations: 0.9437 MB / 295.3 MB, free: 3.32 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2491881335154176]