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.001896/0.001896, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001468/0.001468, allocations: 211.7 kB / 23.73 MB, free: 4.387 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.55/1.55, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] 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.2233/0.2233, allocations: 44.93 MB / 358.8 MB, free: 6.047 MB / 286.1 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002472/0.002472, allocations: 67.91 kB / 0.4935 GB, free: 10.05 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3945/0.397, allocations: 65.47 MB / 0.5574 GB, free: 7.508 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001791/0.3988, allocations: 499.9 kB / 0.5579 GB, free: 7.023 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007205/0.3995, allocations: 261.6 kB / 0.5582 GB, free: 6.77 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.771e-05/0.3996, allocations: 0 / 0.5582 GB, free: 6.77 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.663e-05/0.3996, allocations: 0 / 0.5582 GB, free: 6.77 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.6e-06/0.3996, allocations: 0 / 0.5582 GB, free: 6.77 MB / 398.1 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.0003734/0.3999, allocations: 51.77 kB / 0.5582 GB, free: 6.719 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.826e-05/0.4, allocations: 3.984 kB / 0.5582 GB, free: 6.715 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.943e-05/0.4001, allocations: 7.984 kB / 0.5582 GB, free: 6.707 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.77e-05/0.4001, allocations: 0 / 0.5582 GB, free: 6.707 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.649e-05/0.4001, allocations: 0 / 0.5582 GB, free: 6.707 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.001e-05/0.4001, allocations: 0 / 0.5582 GB, free: 6.707 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000177/0.4003, allocations: 67.95 kB / 0.5583 GB, free: 6.641 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.516e-06/0.4003, allocations: 4 kB / 0.5583 GB, free: 6.637 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.302e-05/0.4003, allocations: 4 kB / 0.5583 GB, free: 6.633 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001617/0.4005, allocations: 55.66 kB / 0.5583 GB, free: 6.582 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.4005, allocations: 0 / 0.5583 GB, free: 6.582 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4005, allocations: 3.938 kB / 0.5583 GB, free: 6.578 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.4005, allocations: 0 / 0.5583 GB, free: 6.578 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.0003925/0.4009, allocations: 286.5 kB / 0.5586 GB, free: 6.266 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.4009, allocations: 8.031 kB / 0.5586 GB, free: 6.258 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.056e-05/0.4009, allocations: 0.9375 kB / 0.5586 GB, free: 6.258 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.832e-05/0.401, allocations: 102.5 kB / 0.5587 GB, free: 6.133 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.046e-06/0.4011, allocations: 8.375 kB / 0.5587 GB, free: 6.125 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.279e-05/0.4011, allocations: 384 / 0.5587 GB, free: 6.125 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001123/0.4012, allocations: 59.95 kB / 0.5588 GB, free: 6.055 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.4012, allocations: 192 / 0.5588 GB, free: 6.055 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.4012, allocations: 3.938 kB / 0.5588 GB, free: 6.051 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.4012, allocations: 0 / 0.5588 GB, free: 6.051 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.825e-05/0.4012, allocations: 33.64 kB / 0.5588 GB, free: 6.012 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001341/0.4014, allocations: 97.33 kB / 0.5589 GB, free: 5.887 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.689e-05/0.4014, allocations: 40.28 kB / 0.559 GB, free: 5.832 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.687e-05/0.4015, allocations: 38.64 kB / 0.559 GB, free: 5.785 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.258e-06/0.4015, allocations: 4 kB / 0.559 GB, free: 5.781 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001367/0.4016, allocations: 60.27 kB / 0.5591 GB, free: 5.707 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.4016, allocations: 0 / 0.5591 GB, free: 5.707 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002277/0.4019, allocations: 126.6 kB / 0.5592 GB, free: 5.559 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.106e-05/0.4019, allocations: 81.11 kB / 0.5593 GB, free: 5.461 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.85e-05/0.402, allocations: 93.81 kB / 0.5593 GB, free: 5.359 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.647e-05/0.402, allocations: 25.7 kB / 0.5594 GB, free: 5.328 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.772e-05/0.402, allocations: 84.14 kB / 0.5594 GB, free: 5.242 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.149e-05/0.4021, allocations: 0 / 0.5594 GB, free: 5.242 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.183e-05/0.4021, allocations: 13.72 kB / 0.5595 GB, free: 5.223 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.4022, allocations: 315 kB / 0.5598 GB, free: 4.906 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.609e-05/0.4023, allocations: 25.7 kB / 0.5598 GB, free: 4.875 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.274e-05/0.4023, allocations: 29.7 kB / 0.5598 GB, free: 4.84 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.448e-05/0.4024, allocations: 68.25 kB / 0.5599 GB, free: 4.758 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.4024, allocations: 0 / 0.5599 GB, free: 4.758 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.441e-05/0.4025, allocations: 89.05 kB / 0.56 GB, free: 4.652 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.918e-05/0.4025, allocations: 29.7 kB / 0.56 GB, free: 4.617 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.4025, allocations: 3.984 kB / 0.56 GB, free: 4.613 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.268e-05/0.4025, allocations: 0 / 0.56 GB, free: 4.613 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.861e-06/0.4026, allocations: 4.031 kB / 0.56 GB, free: 4.609 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.4026, allocations: 4 kB / 0.56 GB, free: 4.605 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.805e-05/0.4026, allocations: 4 kB / 0.56 GB, free: 4.602 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.636e-06/0.4026, allocations: 0 / 0.56 GB, free: 4.602 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 0.0001327/0.4027, allocations: 135.5 kB / 0.5601 GB, free: 4.453 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.594e-06/0.4027, allocations: 4 kB / 0.5601 GB, free: 4.449 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.445e-05/0.4027, allocations: 3 kB / 0.5601 GB, free: 4.445 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.4027, allocations: 7.875 kB / 0.5602 GB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.4028, allocations: 0 / 0.5602 GB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.4028, allocations: 0 / 0.5602 GB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001016/0.4029, allocations: 101.3 kB / 0.5602 GB, free: 4.309 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.4029, allocations: 4 kB / 0.5603 GB, free: 4.305 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.11e-07/0.4029, allocations: 0 / 0.5603 GB, free: 4.305 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.297e-06/0.4029, allocations: 3.984 kB / 0.5603 GB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/0.4029, allocations: 0 / 0.5603 GB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.289e-06/0.4029, allocations: 4 kB / 0.5603 GB, free: 4.297 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.4029, allocations: 3.938 kB / 0.5603 GB, free: 4.293 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001419/0.403, allocations: 120.5 kB / 0.5604 GB, free: 4.145 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.111e-06/0.403, allocations: 4 kB / 0.5604 GB, free: 4.141 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.291e-05/0.403, allocations: 0 / 0.5604 GB, free: 4.141 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.285e-06/0.403, allocations: 3.938 kB / 0.5604 GB, free: 4.137 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.586e-05/0.4031, allocations: 7.969 kB / 0.5604 GB, free: 4.129 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5e-06/0.4031, allocations: 4 kB / 0.5604 GB, free: 4.125 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.662e-05/0.4031, allocations: 75.28 kB / 0.5605 GB, free: 4.051 MB / 398.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.4031, allocations: 0 / 0.5605 GB, free: 4.051 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002373/0.4034, allocations: 27.92 kB / 0.5605 GB, free: 4.023 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.0008485/0.4042, allocations: 279 kB / 0.5608 GB, free: 3.82 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001767/0.4044, allocations: 122.7 kB / 0.5609 GB, free: 3.676 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.4044, allocations: 0 / 0.5609 GB, free: 3.676 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 7.232e-05/0.4045, allocations: 81.11 kB / 0.561 GB, free: 3.578 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001377/0.4046, allocations: 4.125 kB / 0.561 GB, free: 3.574 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002862/0.4049, allocations: 110.7 kB / 0.5611 GB, free: 3.434 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.345e-05/0.405, allocations: 63.28 kB / 0.5611 GB, free: 3.352 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.432e-06/0.405, allocations: 0 / 0.5611 GB, free: 3.352 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.729e-05/0.405, allocations: 7.438 kB / 0.5611 GB, free: 3.344 MB / 398.1 MB Notification: Performance of SimCode: time 2.91e-07/0.405, allocations: 0 / 0.5611 GB, free: 3.344 MB / 398.1 MB Notification: Performance of Templates: time 0.003815/0.4088, allocations: 0.7887 MB / 0.5619 GB, free: 2.559 MB / 398.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 5.290148263797164]