Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001866/0.001866, allocations: 106.5 kB / 21.22 MB, free: 0.6797 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00297/0.00297, allocations: 209.3 kB / 24.54 MB, free: 4.055 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.552/1.552, allocations: 230.3 MB / 258 MB, free: 8.211 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2319/0.2319, allocations: 46.94 MB / 361.4 MB, free: 4.402 MB / 286.1 MB
"
[Timeout remaining time 180]
Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo)
Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo)
Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo)
Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo)
Running command: translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile")
translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile") [Timeout 660]
"Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Notification: Performance of FrontEnd - loaded program: time 0.002355/0.002355, allocations: 79.86 kB / 0.4971 GB, free: 7.547 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3549/0.3573, allocations: 66.05 MB / 0.5616 GB, free: 4.512 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.00156/0.3588, allocations: 485 kB / 0.5621 GB, free: 4.039 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001331/0.3602, allocations: 0.8707 MB / 0.5629 GB, free: 3.168 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 2.84e-05/0.3602, allocations: 4 kB / 0.563 GB, free: 3.164 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 1.914e-05/0.3602, allocations: 0 / 0.563 GB, free: 3.164 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001803/0.3604, allocations: 11.92 kB / 0.563 GB, free: 3.152 MB / 398.1 MB
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Utilities.mo:322:3-362: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.0006403/0.361, allocations: 54.84 kB / 0.563 GB, free: 3.102 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 5.92e-05/0.3611, allocations: 11.92 kB / 0.563 GB, free: 3.09 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 3.656e-05/0.3611, allocations: 0 / 0.563 GB, free: 3.09 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 2.224e-05/0.3612, allocations: 4 kB / 0.563 GB, free: 3.086 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 6.455e-05/0.3612, allocations: 4 kB / 0.563 GB, free: 3.082 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 7.614e-06/0.3612, allocations: 0 / 0.563 GB, free: 3.082 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001484/0.3614, allocations: 63.92 kB / 0.5631 GB, free: 3.02 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 8.355e-06/0.3614, allocations: 4 kB / 0.5631 GB, free: 3.016 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 2.575e-05/0.3614, allocations: 3.938 kB / 0.5631 GB, free: 3.012 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.000144/0.3616, allocations: 47.73 kB / 0.5631 GB, free: 2.969 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3616, allocations: 4 kB / 0.5632 GB, free: 2.965 MB / 398.1 MB
Notification: Performance of FrontEnd: time 2.274e-06/0.3616, allocations: 0 / 0.5632 GB, free: 2.965 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 1.125e-05/0.3616, allocations: 0 / 0.5632 GB, free: 2.965 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.0003898/0.362, allocations: 282.7 kB / 0.5634 GB, free: 2.656 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.362, allocations: 8.031 kB / 0.5634 GB, free: 2.648 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 3.048e-05/0.362, allocations: 0.9375 kB / 0.5634 GB, free: 2.648 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001288/0.3622, allocations: 106.5 kB / 0.5635 GB, free: 2.52 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.3622, allocations: 384 / 0.5635 GB, free: 2.52 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.604e-05/0.3622, allocations: 4.375 kB / 0.5635 GB, free: 2.516 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 9.041e-05/0.3623, allocations: 38.2 kB / 0.5636 GB, free: 2.473 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.3623, allocations: 192 / 0.5636 GB, free: 2.473 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.323e-05/0.3623, allocations: 7.875 kB / 0.5636 GB, free: 2.465 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.3623, allocations: 0 / 0.5636 GB, free: 2.465 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 1.793e-05/0.3623, allocations: 4 kB / 0.5636 GB, free: 2.461 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001492/0.3625, allocations: 120.8 kB / 0.5637 GB, free: 2.301 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 5.073e-05/0.3625, allocations: 14.58 kB / 0.5637 GB, free: 2.277 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 1.64e-05/0.3625, allocations: 12.89 kB / 0.5637 GB, free: 2.262 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 8.917e-06/0.3625, allocations: 4 kB / 0.5637 GB, free: 2.258 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.542e-05/0.3626, allocations: 56.27 kB / 0.5638 GB, free: 2.188 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=1): time 1.212e-06/0.3626, allocations: 0 / 0.5638 GB, free: 2.188 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1): time 0.000196/0.3628, allocations: 71.33 kB / 0.5639 GB, free: 2.105 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.217e-05/0.3629, allocations: 85.05 kB / 0.5639 GB, free: 2.004 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.316e-05/0.3629, allocations: 89.86 kB / 0.564 GB, free: 1.906 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.693e-05/0.363, allocations: 25.95 kB / 0.564 GB, free: 1.875 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 3.947e-05/0.363, allocations: 88.12 kB / 0.5641 GB, free: 1.785 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 1.381e-05/0.363, allocations: 0 / 0.5641 GB, free: 1.785 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.231e-05/0.363, allocations: 21.7 kB / 0.5641 GB, free: 1.758 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001524/0.3632, allocations: 310.8 kB / 0.5644 GB, free: 1.445 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 2.268e-05/0.3632, allocations: 3.938 kB / 0.5644 GB, free: 1.441 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 7.163e-06/0.3632, allocations: 4 kB / 0.5645 GB, free: 1.438 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 5.107e-05/0.3633, allocations: 56.27 kB / 0.5645 GB, free: 1.367 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.3633, allocations: 8.062 kB / 0.5645 GB, free: 1.359 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1) (initialization): time 7.688e-05/0.3634, allocations: 63.39 kB / 0.5646 GB, free: 1.285 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 3.863e-05/0.3634, allocations: 35.73 kB / 0.5646 GB, free: 1.246 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.3634, allocations: 3.938 kB / 0.5646 GB, free: 1.242 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.3634, allocations: 0 / 0.5646 GB, free: 1.242 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.62e-07/0.3634, allocations: 0 / 0.5646 GB, free: 1.242 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.3634, allocations: 0 / 0.5646 GB, free: 1.242 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.649e-05/0.3634, allocations: 0 / 0.5646 GB, free: 1.242 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.859e-06/0.3635, allocations: 7.984 kB / 0.5646 GB, free: 1.234 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.0001108/0.3636, allocations: 140.4 kB / 0.5648 GB, free: 1.082 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.019e-05/0.3636, allocations: 4 kB / 0.5648 GB, free: 1.078 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.415e-05/0.3636, allocations: 10.92 kB / 0.5648 GB, free: 1.066 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.31e-07/0.3636, allocations: 0 / 0.5648 GB, free: 1.066 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.3636, allocations: 0 / 0.5648 GB, free: 1.066 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.3636, allocations: 0 / 0.5648 GB, free: 1.066 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001159/0.3637, allocations: 120.8 kB / 0.5649 GB, free: 0.9062 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.3637, allocations: 3.938 kB / 0.5649 GB, free: 0.9023 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.22e-07/0.3637, allocations: 0 / 0.5649 GB, free: 0.9023 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 9.92e-07/0.3637, allocations: 0 / 0.5649 GB, free: 0.9023 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.33e-05/0.3637, allocations: 11.92 kB / 0.5649 GB, free: 0.8906 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.3637, allocations: 0 / 0.5649 GB, free: 0.8906 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3637, allocations: 0 / 0.5649 GB, free: 0.8906 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001159/0.3638, allocations: 86.84 kB / 0.565 GB, free: 0.7812 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 1.121e-05/0.3639, allocations: 7.938 kB / 0.565 GB, free: 0.7734 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.228e-05/0.3639, allocations: 15.92 kB / 0.565 GB, free: 0.7578 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.406e-06/0.3639, allocations: 0 / 0.565 GB, free: 0.7578 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 1.779e-05/0.3639, allocations: 32 / 0.565 GB, free: 0.7578 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-06/0.3639, allocations: 4 kB / 0.565 GB, free: 0.7539 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 6.2e-05/0.364, allocations: 83.22 kB / 0.5651 GB, free: 0.6719 MB / 398.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.364, allocations: 0 / 0.5651 GB, free: 0.6719 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.000233/0.3642, allocations: 15.94 kB / 0.5651 GB, free: 0.6562 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.0005199/0.3647, allocations: 184.4 kB / 0.5653 GB, free: 500 kB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001068/0.3648, allocations: 55.41 kB / 0.5653 GB, free: 432 kB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.3648, allocations: 0 / 0.5653 GB, free: 432 kB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 3.975e-05/0.3649, allocations: 55.41 kB / 0.5654 GB, free: 364 kB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001395/0.365, allocations: 15.02 kB / 0.5654 GB, free: 352 kB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002241/0.3652, allocations: 84.98 kB / 0.5655 GB, free: 240 kB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003869/0.3656, allocations: 0.6768 MB / 0.5661 GB, free: 15.53 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 7.023e-06/0.3656, allocations: 0 / 0.5661 GB, free: 15.53 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 1.185e-05/0.3656, allocations: 7.438 kB / 0.5661 GB, free: 15.52 MB / 414.1 MB
Notification: Performance of SimCode: time 4.11e-07/0.3656, allocations: 0 / 0.5661 GB, free: 15.52 MB / 414.1 MB
Notification: Performance of Templates: time 0.003419/0.3691, allocations: 0.657 MB / 0.5668 GB, free: 14.87 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.makefile [Timeout 660]
(rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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.1932796416804194]