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.001593/0.001593, allocations: 107.6 kB / 21.19 MB, free: 0.668 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.001776/0.001776, allocations: 207.5 kB / 24.48 MB, free: 3.977 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.48/1.48, allocations: 230.6 MB / 258.3 MB, free: 7.789 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.251/0.251, allocations: 44.92 MB / 359.6 MB, free: 6.094 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.002345/0.002345, allocations: 63.91 kB / 0.4942 GB, free: 10.11 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.3351, allocations: 65.48 MB / 0.5582 GB, free: 7.52 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.00235/0.3374, allocations: 481.1 kB / 0.5586 GB, free: 7.047 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001061/0.3385, allocations: 265.4 kB / 0.5589 GB, free: 6.789 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.087e-05/0.3385, allocations: 0 / 0.5589 GB, free: 6.789 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.591e-05/0.3385, allocations: 0 / 0.5589 GB, free: 6.789 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.705e-06/0.3386, allocations: 3.938 kB / 0.5589 GB, free: 6.785 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.0004687/0.339, allocations: 47.83 kB / 0.5589 GB, free: 6.738 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.803e-05/0.3391, allocations: 8 kB / 0.5589 GB, free: 6.73 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.582e-05/0.3391, allocations: 4 kB / 0.5589 GB, free: 6.727 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.002e-05/0.3392, allocations: 0 / 0.5589 GB, free: 6.727 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.576e-05/0.3392, allocations: 3.984 kB / 0.5589 GB, free: 6.723 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.248e-05/0.3392, allocations: 0 / 0.5589 GB, free: 6.723 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002306/0.3394, allocations: 67.94 kB / 0.559 GB, free: 6.656 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.199e-05/0.3394, allocations: 0 / 0.559 GB, free: 6.656 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.521e-05/0.3395, allocations: 0 / 0.559 GB, free: 6.656 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002058/0.3397, allocations: 55.72 kB / 0.5591 GB, free: 6.605 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.158e-05/0.3397, allocations: 4 kB / 0.5591 GB, free: 6.602 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3397, allocations: 0 / 0.5591 GB, free: 6.602 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.3397, allocations: 3.938 kB / 0.5591 GB, free: 6.598 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.0004769/0.3402, allocations: 284.2 kB / 0.5593 GB, free: 6.289 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.3402, allocations: 11.97 kB / 0.5594 GB, free: 6.277 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.808e-05/0.3403, allocations: 4.938 kB / 0.5594 GB, free: 6.273 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001313/0.3404, allocations: 106.5 kB / 0.5595 GB, free: 6.145 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.605e-05/0.3404, allocations: 384 / 0.5595 GB, free: 6.145 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.031e-05/0.3404, allocations: 384 / 0.5595 GB, free: 6.145 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001393/0.3406, allocations: 55.97 kB / 0.5595 GB, free: 6.078 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.3406, allocations: 4.172 kB / 0.5595 GB, free: 6.074 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.365e-05/0.3406, allocations: 3.938 kB / 0.5595 GB, free: 6.07 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.3406, allocations: 0 / 0.5595 GB, free: 6.07 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.97e-05/0.3406, allocations: 29.7 kB / 0.5595 GB, free: 6.035 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001639/0.3408, allocations: 101.3 kB / 0.5596 GB, free: 5.906 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.254e-05/0.3409, allocations: 52.25 kB / 0.5597 GB, free: 5.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.873e-05/0.3409, allocations: 30.56 kB / 0.5597 GB, free: 5.801 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.272e-05/0.341, allocations: 3.984 kB / 0.5597 GB, free: 5.797 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.439e-05/0.341, allocations: 64.31 kB / 0.5598 GB, free: 5.719 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.473e-06/0.341, allocations: 0 / 0.5598 GB, free: 5.719 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000275/0.3413, allocations: 118.8 kB / 0.5599 GB, free: 5.578 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.184e-05/0.3414, allocations: 81.05 kB / 0.56 GB, free: 5.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.977e-05/0.3415, allocations: 93.81 kB / 0.5601 GB, free: 5.379 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.349e-05/0.3415, allocations: 29.81 kB / 0.5601 GB, free: 5.344 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.762e-05/0.3415, allocations: 88.08 kB / 0.5602 GB, free: 5.254 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.514e-05/0.3416, allocations: 4 kB / 0.5602 GB, free: 5.25 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.775e-05/0.3416, allocations: 9.719 kB / 0.5602 GB, free: 5.234 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00021/0.3418, allocations: 310.8 kB / 0.5605 GB, free: 4.922 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.684e-05/0.3418, allocations: 37.64 kB / 0.5605 GB, free: 4.879 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.858e-05/0.3419, allocations: 25.7 kB / 0.5606 GB, free: 4.848 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.599e-05/0.3419, allocations: 60.27 kB / 0.5606 GB, free: 4.773 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3419, allocations: 0 / 0.5606 GB, free: 4.773 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001366/0.3421, allocations: 93.19 kB / 0.5607 GB, free: 4.664 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.172e-05/0.3421, allocations: 33.7 kB / 0.5607 GB, free: 4.625 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.3421, allocations: 3.938 kB / 0.5607 GB, free: 4.621 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.3421, allocations: 4 kB / 0.5607 GB, free: 4.617 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.436e-06/0.3421, allocations: 3.938 kB / 0.5607 GB, free: 4.613 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.3422, allocations: 0 / 0.5607 GB, free: 4.613 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.856e-05/0.3422, allocations: 0 / 0.5607 GB, free: 4.613 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.324e-06/0.3422, allocations: 0 / 0.5607 GB, free: 4.613 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.0001456/0.3423, allocations: 139.5 kB / 0.5609 GB, free: 4.461 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.365e-05/0.3423, allocations: 0 / 0.5609 GB, free: 4.461 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.607e-05/0.3424, allocations: 3 kB / 0.5609 GB, free: 4.457 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.3424, allocations: 7.938 kB / 0.5609 GB, free: 4.449 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.3424, allocations: 0 / 0.5609 GB, free: 4.449 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.533e-06/0.3424, allocations: 4 kB / 0.5609 GB, free: 4.445 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001009/0.3425, allocations: 93.33 kB / 0.561 GB, free: 4.324 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.3425, allocations: 3.984 kB / 0.561 GB, free: 4.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.72e-07/0.3425, allocations: 0 / 0.561 GB, free: 4.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.3425, allocations: 0 / 0.561 GB, free: 4.32 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.3425, allocations: 4 kB / 0.561 GB, free: 4.316 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3425, allocations: 0 / 0.561 GB, free: 4.316 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.3425, allocations: 3.938 kB / 0.561 GB, free: 4.312 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000188/0.3427, allocations: 124.5 kB / 0.5611 GB, free: 4.16 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.051e-05/0.3427, allocations: 4 kB / 0.5611 GB, free: 4.156 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.804e-05/0.3427, allocations: 0 / 0.5611 GB, free: 4.156 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.949e-05/0.3427, allocations: 4 kB / 0.5611 GB, free: 4.152 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.75e-05/0.3428, allocations: 3.938 kB / 0.5611 GB, free: 4.148 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.644e-06/0.3428, allocations: 4 kB / 0.5611 GB, free: 4.145 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.53e-05/0.3428, allocations: 75.28 kB / 0.5612 GB, free: 4.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3428, allocations: 0 / 0.5612 GB, free: 4.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000384/0.3432, allocations: 23.92 kB / 0.5612 GB, free: 4.047 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.00111/0.3443, allocations: 298.8 kB / 0.5615 GB, free: 3.828 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001869/0.3445, allocations: 110.8 kB / 0.5616 GB, free: 3.695 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3445, allocations: 0 / 0.5616 GB, free: 3.695 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 7.896e-05/0.3446, allocations: 85.09 kB / 0.5617 GB, free: 3.594 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001983/0.3448, allocations: 10.97 kB / 0.5617 GB, free: 3.586 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003304/0.3451, allocations: 136.3 kB / 0.5618 GB, free: 3.414 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.522e-05/0.3452, allocations: 51.36 kB / 0.5619 GB, free: 3.344 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.348e-05/0.3452, allocations: 11.44 kB / 0.5619 GB, free: 3.332 MB / 398.1 MB Notification: Performance of SimCode: time 7.02e-07/0.3452, allocations: 0 / 0.5619 GB, free: 3.332 MB / 398.1 MB Notification: Performance of Templates: time 0.003982/0.3492, allocations: 0.956 MB / 0.5628 GB, free: 2.375 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/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: 7.459389840718359]