Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.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.001644/0.001644, allocations: 106.5 kB / 21.22 MB, free: 0.5117 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.00211/0.00211, allocations: 217.3 kB / 24.54 MB, free: 3.898 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.515/1.515, allocations: 230.3 MB / 258 MB, free: 8.207 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.235/0.235, allocations: 46.94 MB / 361.4 MB, free: 4.398 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.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles")
translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles") [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.002345/0.002345, allocations: 83.86 kB / 0.4971 GB, free: 7.539 MB / 366.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4167/0.419, allocations: 66.04 MB / 0.5616 GB, free: 4.547 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001729/0.4207, allocations: 493 kB / 0.5621 GB, free: 4.066 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002555/0.4233, allocations: 1.373 MB / 0.5634 GB, free: 2.691 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 2.795e-05/0.4233, allocations: 4 kB / 0.5634 GB, free: 2.688 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 1.979e-05/0.4233, allocations: 0 / 0.5634 GB, free: 2.688 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002049/0.4235, allocations: 11.92 kB / 0.5635 GB, free: 2.676 MB / 398.1 MB
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Utilities.mo:455:3-487: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.001212/0.4248, allocations: 265.2 kB / 0.5637 GB, free: 2.418 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 6.314e-05/0.4248, allocations: 8 kB / 0.5637 GB, free: 2.41 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 4.267e-05/0.4249, allocations: 0 / 0.5637 GB, free: 2.41 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 1.974e-05/0.4249, allocations: 0 / 0.5637 GB, free: 2.41 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 9.58e-05/0.425, allocations: 19.34 kB / 0.5637 GB, free: 2.395 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 9.448e-06/0.425, allocations: 0 / 0.5637 GB, free: 2.395 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.00419/0.4292, allocations: 0.7435 MB / 0.5645 GB, free: 1.777 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 1.406e-05/0.4292, allocations: 3.984 kB / 0.5645 GB, free: 1.773 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 3.066e-05/0.4292, allocations: 4 kB / 0.5645 GB, free: 1.77 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0003382/0.4296, allocations: 174.3 kB / 0.5646 GB, free: 1.605 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/0.4296, allocations: 4 kB / 0.5646 GB, free: 1.602 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.683e-06/0.4296, allocations: 4 kB / 0.5646 GB, free: 1.598 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 1.061e-05/0.4296, allocations: 0 / 0.5646 GB, free: 1.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.0004316/0.43, allocations: 307.7 kB / 0.5649 GB, free: 1.258 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.4301, allocations: 8.031 kB / 0.5649 GB, free: 1.25 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 3.56e-05/0.4301, allocations: 4.938 kB / 0.5649 GB, free: 1.246 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001193/0.4302, allocations: 110.5 kB / 0.5651 GB, free: 1.113 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.566e-05/0.4302, allocations: 4.375 kB / 0.5651 GB, free: 1.109 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.326e-05/0.4302, allocations: 384 / 0.5651 GB, free: 1.109 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001002/0.4303, allocations: 42.19 kB / 0.5651 GB, free: 1.062 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.4303, allocations: 192 / 0.5651 GB, free: 1.062 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.4304, allocations: 3.938 kB / 0.5651 GB, free: 1.059 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.4304, allocations: 0 / 0.5651 GB, free: 1.059 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 2.591e-05/0.4304, allocations: 4 kB / 0.5651 GB, free: 1.055 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001464/0.4305, allocations: 116.8 kB / 0.5652 GB, free: 0.8984 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 5.92e-05/0.4306, allocations: 26.55 kB / 0.5652 GB, free: 0.8633 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 1.694e-05/0.4306, allocations: 4.859 kB / 0.5652 GB, free: 0.8555 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.01e-05/0.4306, allocations: 4 kB / 0.5653 GB, free: 0.8516 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.587e-05/0.4307, allocations: 60.33 kB / 0.5653 GB, free: 0.7773 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.4307, allocations: 0 / 0.5653 GB, free: 0.7773 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1): time 0.0001867/0.4309, allocations: 67.33 kB / 0.5654 GB, free: 0.6992 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.016e-05/0.4309, allocations: 77.11 kB / 0.5654 GB, free: 0.6055 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.253e-05/0.431, allocations: 97.86 kB / 0.5655 GB, free: 0.5 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.646e-05/0.431, allocations: 29.89 kB / 0.5656 GB, free: 476 kB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 3.771e-05/0.4311, allocations: 84.14 kB / 0.5656 GB, free: 388 kB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 1.623e-05/0.4311, allocations: 0 / 0.5656 GB, free: 388 kB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.596e-05/0.4311, allocations: 13.72 kB / 0.5657 GB, free: 368 kB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001571/0.4313, allocations: 318.8 kB / 0.566 GB, free: 40 kB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 9.648e-06/0.4313, allocations: 0 / 0.566 GB, free: 40 kB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 9.227e-06/0.4313, allocations: 4 kB / 0.566 GB, free: 36 kB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 7.594e-05/0.4314, allocations: 64.2 kB / 0.566 GB, free: 15.96 MB / 414.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.4314, allocations: 4.062 kB / 0.566 GB, free: 15.95 MB / 414.1 MB
Notification: Performance of matching and sorting (n=1) (initialization): time 8.085e-05/0.4315, allocations: 67.34 kB / 0.5661 GB, free: 15.88 MB / 414.1 MB
Notification: Performance of prepare postOptimizeDAE: time 3.991e-05/0.4315, allocations: 33.7 kB / 0.5661 GB, free: 15.84 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.4315, allocations: 3.938 kB / 0.5661 GB, free: 15.83 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.4315, allocations: 4 kB / 0.5661 GB, free: 15.83 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.975e-06/0.4315, allocations: 3.938 kB / 0.5661 GB, free: 15.82 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.488e-06/0.4315, allocations: 4 kB / 0.5661 GB, free: 15.82 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.556e-05/0.4315, allocations: 0 / 0.5661 GB, free: 15.82 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-06/0.4315, allocations: 0 / 0.5661 GB, free: 15.82 MB / 414.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.207e-05/0.4316, allocations: 140.5 kB / 0.5663 GB, free: 15.67 MB / 414.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 7.744e-06/0.4316, allocations: 0 / 0.5663 GB, free: 15.67 MB / 414.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.809e-05/0.4317, allocations: 11.08 kB / 0.5663 GB, free: 15.65 MB / 414.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.11e-07/0.4317, allocations: 0 / 0.5663 GB, free: 15.65 MB / 414.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.177e-06/0.4317, allocations: 0 / 0.5663 GB, free: 15.65 MB / 414.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.4317, allocations: 3.938 kB / 0.5663 GB, free: 15.65 MB / 414.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.433e-05/0.4318, allocations: 116.8 kB / 0.5664 GB, free: 15.49 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.4318, allocations: 0 / 0.5664 GB, free: 15.49 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.4318, allocations: 0 / 0.5664 GB, free: 15.49 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.4318, allocations: 3.984 kB / 0.5664 GB, free: 15.49 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.4318, allocations: 11.94 kB / 0.5664 GB, free: 15.48 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.4318, allocations: 0 / 0.5664 GB, free: 15.48 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.4318, allocations: 0 / 0.5664 GB, free: 15.48 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001135/0.4319, allocations: 90.84 kB / 0.5665 GB, free: 15.36 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 7.454e-06/0.4319, allocations: 3.984 kB / 0.5665 GB, free: 15.36 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.742e-05/0.4319, allocations: 11.86 kB / 0.5665 GB, free: 15.35 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.496e-06/0.4319, allocations: 4 kB / 0.5665 GB, free: 15.34 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 1.353e-05/0.4319, allocations: 0 / 0.5665 GB, free: 15.34 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-06/0.4319, allocations: 4.031 kB / 0.5665 GB, free: 15.34 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 4.04e-05/0.432, allocations: 79.28 kB / 0.5666 GB, free: 15.26 MB / 414.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.432, allocations: 0 / 0.5666 GB, free: 15.26 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.0003022/0.4323, allocations: 59.86 kB / 0.5667 GB, free: 15.2 MB / 414.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.0008152/0.4331, allocations: 320.8 kB / 0.567 GB, free: 14.93 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001231/0.4332, allocations: 67.28 kB / 0.567 GB, free: 14.85 MB / 414.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.4332, allocations: 0 / 0.567 GB, free: 14.85 MB / 414.1 MB
Notification: Performance of simCode: created simulation system equations: time 4.011e-05/0.4333, allocations: 63.45 kB / 0.5671 GB, free: 14.78 MB / 414.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001409/0.4334, allocations: 6.5 kB / 0.5671 GB, free: 14.77 MB / 414.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002149/0.4336, allocations: 81 kB / 0.5672 GB, free: 14.67 MB / 414.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003278/0.4339, allocations: 0.6767 MB / 0.5678 GB, free: 13.96 MB / 414.1 MB
Notification: Performance of simCode: alias equations: time 5.891e-06/0.434, allocations: 0 / 0.5678 GB, free: 13.96 MB / 414.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 1.457e-05/0.434, allocations: 11.44 kB / 0.5678 GB, free: 13.95 MB / 414.1 MB
Notification: Performance of SimCode: time 3.31e-07/0.434, allocations: 0 / 0.5678 GB, free: 13.95 MB / 414.1 MB
Notification: Performance of Templates: time 0.005534/0.4395, allocations: 1.61 MB / 0.5694 GB, free: 12.35 MB / 414.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660]
(rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 5.409696680493653]