Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.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.001985/0.001985, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.0025/0.0025, allocations: 211.5 kB / 24.48 MB, free: 3.938 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.454/1.454, allocations: 230.6 MB / 258.3 MB, free: 7.746 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.2256/0.2256, allocations: 44.94 MB / 359.6 MB, free: 6.074 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.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") [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.002149/0.002149, allocations: 87.8 kB / 0.4942 GB, free: 10.08 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3516/0.3537, allocations: 65.46 MB / 0.5582 GB, free: 7.52 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001909/0.3556, allocations: 499.7 kB / 0.5586 GB, free: 7.031 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002551/0.3582, allocations: 1.342 MB / 0.56 GB, free: 5.684 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.825e-05/0.3582, allocations: 0 / 0.56 GB, free: 5.684 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.444e-05/0.3582, allocations: 4 kB / 0.56 GB, free: 5.68 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002302/0.3584, allocations: 15.94 kB / 0.56 GB, free: 5.664 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:456:3-488:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001298/0.3597, allocations: 259.2 kB / 0.5602 GB, free: 5.41 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.365e-05/0.3598, allocations: 4 kB / 0.5602 GB, free: 5.406 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.472e-05/0.3598, allocations: 0 / 0.5602 GB, free: 5.406 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.654e-05/0.3599, allocations: 4 kB / 0.5602 GB, free: 5.402 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.511e-05/0.3599, allocations: 15.86 kB / 0.5602 GB, free: 5.387 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.999e-06/0.3599, allocations: 0 / 0.5602 GB, free: 5.387 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004297/0.3642, allocations: 0.7104 MB / 0.5609 GB, free: 4.805 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.398e-05/0.3642, allocations: 0 / 0.5609 GB, free: 4.805 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.16e-05/0.3643, allocations: 0 / 0.5609 GB, free: 4.805 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003878/0.3647, allocations: 178.1 kB / 0.5611 GB, free: 4.637 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3647, allocations: 0 / 0.5611 GB, free: 4.637 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3647, allocations: 4 kB / 0.5611 GB, free: 4.633 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.3647, allocations: 0 / 0.5611 GB, free: 4.633 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.0004876/0.3652, allocations: 311.7 kB / 0.5614 GB, free: 4.293 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.3652, allocations: 12.03 kB / 0.5614 GB, free: 4.281 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.046e-05/0.3653, allocations: 0.9375 kB / 0.5614 GB, free: 4.281 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001273/0.3654, allocations: 102.5 kB / 0.5615 GB, free: 4.156 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.3654, allocations: 4.375 kB / 0.5615 GB, free: 4.152 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.228e-06/0.3654, allocations: 4.312 kB / 0.5615 GB, free: 4.148 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001499/0.3656, allocations: 67.52 kB / 0.5616 GB, free: 4.07 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.3656, allocations: 3.938 kB / 0.5616 GB, free: 4.066 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.3656, allocations: 4 kB / 0.5616 GB, free: 4.062 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.3656, allocations: 0 / 0.5616 GB, free: 4.062 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.295e-05/0.3656, allocations: 25.7 kB / 0.5616 GB, free: 4.031 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001909/0.3658, allocations: 97.33 kB / 0.5617 GB, free: 3.906 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.551e-05/0.3659, allocations: 52.3 kB / 0.5618 GB, free: 3.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.995e-05/0.366, allocations: 34.5 kB / 0.5618 GB, free: 3.797 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.127e-05/0.366, allocations: 0 / 0.5618 GB, free: 3.797 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.027e-05/0.3661, allocations: 60.33 kB / 0.5619 GB, free: 3.723 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.653e-06/0.3661, allocations: 3.938 kB / 0.5619 GB, free: 3.719 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002792/0.3663, allocations: 126.7 kB / 0.562 GB, free: 3.57 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.675e-05/0.3664, allocations: 77.11 kB / 0.5621 GB, free: 3.477 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.663e-05/0.3665, allocations: 93.86 kB / 0.5621 GB, free: 3.375 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.668e-05/0.3665, allocations: 25.7 kB / 0.5622 GB, free: 3.344 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.311e-05/0.3666, allocations: 80.14 kB / 0.5622 GB, free: 3.262 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.63e-05/0.3666, allocations: 4 kB / 0.5622 GB, free: 3.258 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.349e-05/0.3667, allocations: 13.72 kB / 0.5623 GB, free: 3.238 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.3668, allocations: 318.8 kB / 0.5626 GB, free: 2.918 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.497e-05/0.3668, allocations: 29.64 kB / 0.5626 GB, free: 2.883 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.313e-05/0.3669, allocations: 25.95 kB / 0.5626 GB, free: 2.852 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.883e-05/0.367, allocations: 64.33 kB / 0.5627 GB, free: 2.773 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.367, allocations: 0 / 0.5627 GB, free: 2.773 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001054/0.3671, allocations: 101 kB / 0.5628 GB, free: 2.656 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.911e-05/0.3671, allocations: 33.64 kB / 0.5628 GB, free: 2.617 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.3671, allocations: 0 / 0.5628 GB, free: 2.617 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.3671, allocations: 0 / 0.5628 GB, free: 2.617 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.122e-06/0.3671, allocations: 0 / 0.5628 GB, free: 2.617 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.3671, allocations: 3.984 kB / 0.5628 GB, free: 2.613 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.915e-05/0.3671, allocations: 4 kB / 0.5628 GB, free: 2.609 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.803e-06/0.3672, allocations: 0 / 0.5628 GB, free: 2.609 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.00013/0.3673, allocations: 143.5 kB / 0.563 GB, free: 2.453 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.431e-05/0.3673, allocations: 7.938 kB / 0.563 GB, free: 2.445 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.959e-05/0.3673, allocations: 11.14 kB / 0.563 GB, free: 2.43 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.3673, allocations: 0 / 0.563 GB, free: 2.43 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.3673, allocations: 4 kB / 0.563 GB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-06/0.3673, allocations: 0 / 0.563 GB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001123/0.3674, allocations: 105.2 kB / 0.5631 GB, free: 2.293 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.3674, allocations: 0 / 0.5631 GB, free: 2.293 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.3674, allocations: 0 / 0.5631 GB, free: 2.293 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.3674, allocations: 0 / 0.5631 GB, free: 2.293 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/0.3675, allocations: 11.92 kB / 0.5631 GB, free: 2.281 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.3675, allocations: 0 / 0.5631 GB, free: 2.281 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.3675, allocations: 4 kB / 0.5631 GB, free: 2.277 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001351/0.3676, allocations: 112.5 kB / 0.5632 GB, free: 2.137 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.893e-06/0.3676, allocations: 3.984 kB / 0.5632 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.758e-05/0.3676, allocations: 7.938 kB / 0.5632 GB, free: 2.125 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.997e-06/0.3676, allocations: 0 / 0.5632 GB, free: 2.125 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.58e-05/0.3676, allocations: 0 / 0.5632 GB, free: 2.125 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-06/0.3676, allocations: 3.938 kB / 0.5632 GB, free: 2.121 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.812e-05/0.3677, allocations: 83.28 kB / 0.5633 GB, free: 2.039 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3677, allocations: 4.125 kB / 0.5633 GB, free: 2.035 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003207/0.368, allocations: 63.8 kB / 0.5634 GB, free: 1.973 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.000855/0.3689, allocations: 340.5 kB / 0.5637 GB, free: 1.711 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001704/0.369, allocations: 114.8 kB / 0.5638 GB, free: 1.574 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.369, allocations: 3.938 kB / 0.5638 GB, free: 1.57 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.519e-05/0.3691, allocations: 81.11 kB / 0.5639 GB, free: 1.473 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001408/0.3692, allocations: 4 kB / 0.5639 GB, free: 1.469 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002486/0.3695, allocations: 136.4 kB / 0.564 GB, free: 1.297 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.356e-05/0.3695, allocations: 59.48 kB / 0.5641 GB, free: 1.219 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.46e-05/0.3696, allocations: 7.438 kB / 0.5641 GB, free: 1.211 MB / 398.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3696, allocations: 0 / 0.5641 GB, free: 1.211 MB / 398.1 MB Notification: Performance of Templates: time 0.004006/0.3736, allocations: 1.684 MB / 0.5657 GB, free: 15.53 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.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: 8.353680154774338]