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.001655/0.001655, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001854/0.001854, allocations: 216.5 kB / 23.75 MB, free: 4.668 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.635/1.635, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.244/0.244, allocations: 46.93 MB / 360.8 MB, free: 4.262 MB / 286.1 MB " [Timeout remaining time 179] 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.002147/0.002147, allocations: 64.05 kB / 0.4966 GB, free: 7.418 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3895/0.3916, allocations: 66.03 MB / 0.5611 GB, free: 4.402 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001609/0.3932, allocations: 492.1 kB / 0.5616 GB, free: 3.922 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006632/0.3939, allocations: 269.4 kB / 0.5618 GB, free: 3.66 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.26e-05/0.3939, allocations: 7.938 kB / 0.5618 GB, free: 3.652 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.134e-05/0.3939, allocations: 0 / 0.5618 GB, free: 3.652 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.162e-06/0.3939, allocations: 0 / 0.5618 GB, free: 3.652 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.0003103/0.3942, allocations: 47.83 kB / 0.5619 GB, free: 3.605 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.751e-05/0.3943, allocations: 4 kB / 0.5619 GB, free: 3.602 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.445e-05/0.3943, allocations: 3.984 kB / 0.5619 GB, free: 3.598 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.543e-05/0.3943, allocations: 3.984 kB / 0.5619 GB, free: 3.594 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.976e-05/0.3944, allocations: 0 / 0.5619 GB, free: 3.594 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.155e-05/0.3944, allocations: 4 kB / 0.5619 GB, free: 3.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001573/0.3945, allocations: 63.95 kB / 0.562 GB, free: 3.527 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.412e-06/0.3945, allocations: 0 / 0.562 GB, free: 3.527 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.037e-05/0.3945, allocations: 4 kB / 0.562 GB, free: 3.523 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000134/0.3947, allocations: 59.66 kB / 0.562 GB, free: 3.469 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3947, allocations: 7.938 kB / 0.562 GB, free: 3.461 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.3947, allocations: 0 / 0.562 GB, free: 3.461 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.3947, allocations: 0 / 0.562 GB, free: 3.461 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.000344/0.395, allocations: 282.5 kB / 0.5623 GB, free: 3.152 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.113e-05/0.3951, allocations: 8.031 kB / 0.5623 GB, free: 3.145 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.926e-05/0.3951, allocations: 0.9375 kB / 0.5623 GB, free: 3.145 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.992e-05/0.3952, allocations: 106.5 kB / 0.5624 GB, free: 3.016 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.003e-06/0.3952, allocations: 4.375 kB / 0.5624 GB, free: 3.012 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.029e-05/0.3952, allocations: 384 / 0.5624 GB, free: 3.012 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.288e-05/0.3953, allocations: 34.25 kB / 0.5624 GB, free: 2.973 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.715e-06/0.3953, allocations: 192 / 0.5624 GB, free: 2.973 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.131e-05/0.3953, allocations: 7.922 kB / 0.5624 GB, free: 2.965 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.3953, allocations: 0 / 0.5624 GB, free: 2.965 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.463e-05/0.3953, allocations: 0 / 0.5624 GB, free: 2.965 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001456/0.3955, allocations: 120.8 kB / 0.5626 GB, free: 2.805 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.34e-05/0.3955, allocations: 22.52 kB / 0.5626 GB, free: 2.773 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.787e-05/0.3955, allocations: 8.953 kB / 0.5626 GB, free: 2.762 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.988e-06/0.3955, allocations: 0 / 0.5626 GB, free: 2.762 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.057e-05/0.3956, allocations: 60.25 kB / 0.5627 GB, free: 2.688 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.3956, allocations: 0 / 0.5627 GB, free: 2.688 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001712/0.3958, allocations: 71.28 kB / 0.5627 GB, free: 2.605 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.126e-05/0.3958, allocations: 77.11 kB / 0.5628 GB, free: 2.512 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.117e-05/0.3959, allocations: 93.94 kB / 0.5629 GB, free: 2.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.473e-05/0.3959, allocations: 33.64 kB / 0.5629 GB, free: 2.371 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.51e-05/0.3959, allocations: 80.14 kB / 0.563 GB, free: 2.289 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.055e-05/0.396, allocations: 7.938 kB / 0.563 GB, free: 2.281 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.917e-05/0.396, allocations: 13.7 kB / 0.563 GB, free: 2.262 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.3961, allocations: 310.8 kB / 0.5633 GB, free: 1.949 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.148e-05/0.3961, allocations: 4 kB / 0.5633 GB, free: 1.945 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.043e-06/0.3961, allocations: 4 kB / 0.5633 GB, free: 1.941 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.275e-05/0.3962, allocations: 64.33 kB / 0.5634 GB, free: 1.863 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.3962, allocations: 0 / 0.5634 GB, free: 1.863 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.797e-05/0.3963, allocations: 63.33 kB / 0.5634 GB, free: 1.789 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.533e-05/0.3963, allocations: 33.7 kB / 0.5635 GB, free: 1.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.3963, allocations: 0 / 0.5635 GB, free: 1.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.3964, allocations: 3.938 kB / 0.5635 GB, free: 1.746 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-07/0.3964, allocations: 0 / 0.5635 GB, free: 1.746 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.518e-06/0.3964, allocations: 0 / 0.5635 GB, free: 1.746 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.426e-05/0.3964, allocations: 0 / 0.5635 GB, free: 1.746 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.021e-05/0.3964, allocations: 7.984 kB / 0.5635 GB, free: 1.738 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.79e-05/0.3965, allocations: 143.5 kB / 0.5636 GB, free: 1.582 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.037e-05/0.3965, allocations: 3.984 kB / 0.5636 GB, free: 1.578 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.162e-05/0.3965, allocations: 10.94 kB / 0.5636 GB, free: 1.566 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.3965, allocations: 0 / 0.5636 GB, free: 1.566 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.3965, allocations: 0 / 0.5636 GB, free: 1.566 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-06/0.3965, allocations: 0 / 0.5636 GB, free: 1.566 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.27e-05/0.3966, allocations: 112.8 kB / 0.5637 GB, free: 1.414 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3966, allocations: 4 kB / 0.5637 GB, free: 1.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.3966, allocations: 4 kB / 0.5637 GB, free: 1.406 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.3966, allocations: 4 kB / 0.5637 GB, free: 1.402 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.3966, allocations: 7.922 kB / 0.5638 GB, free: 1.395 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.3966, allocations: 0 / 0.5638 GB, free: 1.395 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.3966, allocations: 0 / 0.5638 GB, free: 1.395 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000111/0.3967, allocations: 90.78 kB / 0.5638 GB, free: 1.281 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.803e-06/0.3967, allocations: 3.984 kB / 0.5638 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.309e-05/0.3968, allocations: 3.938 kB / 0.5639 GB, free: 1.273 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.231e-05/0.3968, allocations: 8.031 kB / 0.5639 GB, free: 1.266 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.688e-06/0.3968, allocations: 0 / 0.5639 GB, free: 1.266 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.535e-06/0.3968, allocations: 0 / 0.5639 GB, free: 1.266 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.375e-05/0.3968, allocations: 75.28 kB / 0.5639 GB, free: 1.191 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3968, allocations: 0 / 0.5639 GB, free: 1.191 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002259/0.397, allocations: 27.88 kB / 0.564 GB, free: 1.164 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.0006714/0.3977, allocations: 274.1 kB / 0.5642 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001135/0.3978, allocations: 67.39 kB / 0.5643 GB, free: 0.875 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3978, allocations: 64 / 0.5643 GB, free: 0.875 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.768e-05/0.3979, allocations: 59.34 kB / 0.5643 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000126/0.398, allocations: 4 kB / 0.5643 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001832/0.3982, allocations: 85 kB / 0.5644 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003751/0.3985, allocations: 0.6729 MB / 0.5651 GB, free: 15.99 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.24e-06/0.3986, allocations: 0 / 0.5651 GB, free: 15.99 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.219e-05/0.3986, allocations: 7.438 kB / 0.5651 GB, free: 15.98 MB / 414.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3986, allocations: 0 / 0.5651 GB, free: 15.98 MB / 414.1 MB Notification: Performance of Templates: time 0.003645/0.4022, allocations: 0.7973 MB / 0.5659 GB, free: 15.19 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins/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: 5.381266675191]