Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001593/0.001593, allocations: 108.5 kB / 21.23 MB, free: 0.6602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001487/0.001487, allocations: 187.4 kB / 24.51 MB, free: 4.031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.486/1.486, allocations: 225.6 MB / 253.3 MB, free: 13.03 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.2455/0.2455, allocations: 44.91 MB / 353.5 MB, free: 11.85 MB / 286.1 MB " [Timeout remaining time 179] 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001989/0.001989, allocations: 71.88 kB / 497.7 MB, free: 1.051 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3633/0.3653, allocations: 64.3 MB / 0.5488 GB, free: 13.12 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.002164/0.3674, allocations: 491.7 kB / 0.5493 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001663/0.3691, allocations: 0.8723 MB / 0.5501 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.126e-05/0.3691, allocations: 0 / 0.5501 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.505e-05/0.3691, allocations: 0 / 0.5501 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002169/0.3694, allocations: 6.812 kB / 0.5501 GB, free: 12.08 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:323:3-363:15:writable] Warning: Pure function 'ModelicaTest.Utilities.ReadFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.000876/0.3702, allocations: 59.47 kB / 0.5502 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 9.475e-05/0.3703, allocations: 10.8 kB / 0.5502 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.643e-05/0.3704, allocations: 1.625 kB / 0.5502 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.497e-05/0.3704, allocations: 4 kB / 0.5502 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001052/0.3705, allocations: 2.656 kB / 0.5502 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.053e-05/0.3705, allocations: 1.781 kB / 0.5502 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001904/0.3707, allocations: 65.06 kB / 0.5503 GB, free: 12 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.264e-05/0.3707, allocations: 3.984 kB / 0.5503 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.792e-05/0.3708, allocations: 5.531 kB / 0.5503 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001905/0.3709, allocations: 46.58 kB / 0.5503 GB, free: 11.96 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.3709, allocations: 0 / 0.5503 GB, free: 11.96 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.326e-06/0.371, allocations: 1.125 kB / 0.5503 GB, free: 11.96 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.202e-06/0.371, allocations: 0 / 0.5503 GB, free: 11.96 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.0004853/0.3714, allocations: 283.2 kB / 0.5506 GB, free: 11.66 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.3715, allocations: 9.797 kB / 0.5506 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.57e-05/0.3715, allocations: 2.031 kB / 0.5506 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001354/0.3717, allocations: 107.7 kB / 0.5507 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.596e-05/0.3717, allocations: 1.406 kB / 0.5507 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.147e-05/0.3717, allocations: 1.5 kB / 0.5507 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001074/0.3718, allocations: 32.44 kB / 0.5507 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.3718, allocations: 192 / 0.5507 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.3718, allocations: 5.094 kB / 0.5507 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.3718, allocations: 4 kB / 0.5507 GB, free: 11.49 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.1e-05/0.3719, allocations: 0.9688 kB / 0.5507 GB, free: 11.49 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001696/0.372, allocations: 122.9 kB / 0.5509 GB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.244e-05/0.3721, allocations: 20.17 kB / 0.5509 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.036e-05/0.3721, allocations: 10.25 kB / 0.5509 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.478e-06/0.3721, allocations: 1.438 kB / 0.5509 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.538e-05/0.3722, allocations: 60.27 kB / 0.551 GB, free: 11.22 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.31e-07/0.3722, allocations: 1.562 kB / 0.551 GB, free: 11.22 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002108/0.3724, allocations: 66.44 kB / 0.551 GB, free: 11.15 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.926e-05/0.3725, allocations: 78.3 kB / 0.5511 GB, free: 11.05 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001074/0.3726, allocations: 95.44 kB / 0.5512 GB, free: 10.95 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/0.3726, allocations: 29.64 kB / 0.5512 GB, free: 10.92 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.073e-05/0.3726, allocations: 81.55 kB / 0.5513 GB, free: 10.84 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.784e-05/0.3727, allocations: 3.953 kB / 0.5513 GB, free: 10.83 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.365e-05/0.3727, allocations: 17.19 kB / 0.5513 GB, free: 10.81 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001818/0.3729, allocations: 314.8 kB / 0.5516 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.33e-05/0.3729, allocations: 1.594 kB / 0.5516 GB, free: 10.5 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.141e-06/0.3729, allocations: 0 / 0.5516 GB, free: 10.5 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.402e-05/0.373, allocations: 64.19 kB / 0.5517 GB, free: 10.42 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.373, allocations: 0 / 0.5517 GB, free: 10.42 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.247e-05/0.3731, allocations: 59.62 kB / 0.5517 GB, free: 10.36 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.817e-05/0.3731, allocations: 38.52 kB / 0.5518 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.3731, allocations: 9.281 kB / 0.5518 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.3731, allocations: 0 / 0.5518 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.02e-06/0.3731, allocations: 3.938 kB / 0.5518 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.73e-06/0.3731, allocations: 1.344 kB / 0.5518 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.994e-05/0.3732, allocations: 4 kB / 0.5518 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.987e-05/0.3732, allocations: 9.719 kB / 0.5518 GB, free: 10.3 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.000112/0.3733, allocations: 136.9 kB / 0.5519 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.908e-06/0.3733, allocations: 1.531 kB / 0.5519 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.271e-05/0.3733, allocations: 14.89 kB / 0.5519 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.3733, allocations: 1.219 kB / 0.5519 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.3733, allocations: 0 / 0.5519 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-06/0.3733, allocations: 0 / 0.5519 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001253/0.3735, allocations: 119.7 kB / 0.5521 GB, free: 9.973 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.3735, allocations: 0 / 0.5521 GB, free: 9.973 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.51e-07/0.3735, allocations: 0 / 0.5521 GB, free: 9.973 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.796e-06/0.3735, allocations: 1.75 kB / 0.5521 GB, free: 9.973 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.3735, allocations: 7.875 kB / 0.5521 GB, free: 9.965 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.3735, allocations: 0 / 0.5521 GB, free: 9.965 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/0.3735, allocations: 1.875 kB / 0.5521 GB, free: 9.965 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001281/0.3736, allocations: 100.9 kB / 0.5522 GB, free: 9.852 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.939e-06/0.3736, allocations: 1.344 kB / 0.5522 GB, free: 9.852 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.861e-05/0.3736, allocations: 9.188 kB / 0.5522 GB, free: 9.844 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.153e-05/0.3736, allocations: 1.969 kB / 0.5522 GB, free: 9.844 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.278e-05/0.3737, allocations: 0 / 0.5522 GB, free: 9.844 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.885e-06/0.3737, allocations: 3.984 kB / 0.5522 GB, free: 9.84 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.937e-05/0.3737, allocations: 80.25 kB / 0.5523 GB, free: 9.762 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3737, allocations: 1.281 kB / 0.5523 GB, free: 9.762 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002729/0.374, allocations: 21.02 kB / 0.5523 GB, free: 9.754 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.0005067/0.3745, allocations: 180.5 kB / 0.5524 GB, free: 9.637 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001317/0.3746, allocations: 65.36 kB / 0.5525 GB, free: 9.566 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3746, allocations: 0 / 0.5525 GB, free: 9.566 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.935e-05/0.3747, allocations: 54.56 kB / 0.5526 GB, free: 9.504 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001383/0.3748, allocations: 1.906 kB / 0.5526 GB, free: 9.504 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002257/0.375, allocations: 84.52 kB / 0.5526 GB, free: 9.402 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003492/0.3754, allocations: 0.6827 MB / 0.5533 GB, free: 8.695 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.055e-06/0.3754, allocations: 0 / 0.5533 GB, free: 8.695 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.883e-05/0.3754, allocations: 8.375 kB / 0.5533 GB, free: 8.688 MB / 398.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3754, allocations: 3.938 kB / 0.5533 GB, free: 8.684 MB / 398.1 MB Notification: Performance of Templates: time 0.003731/0.3791, allocations: 0.65 MB / 0.554 GB, free: 8.34 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.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.2093619937077165]