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.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.001874/0.001874, allocations: 104.6 kB / 21.22 MB, free: 0.5078 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.002039/0.002039, allocations: 186.5 kB / 24.52 MB, free: 3.895 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.476/1.476, allocations: 225.6 MB / 253.3 MB, free: 13.02 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.2271/0.2271, allocations: 44.91 MB / 353.5 MB, free: 11.8 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.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.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: Performance of FrontEnd - loaded program: time 0.002036/0.002036, allocations: 71.88 kB / 497.7 MB, free: 1 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3776/0.3797, allocations: 64.29 MB / 0.5488 GB, free: 13.12 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001856/0.3815, allocations: 0.4951 MB / 0.5493 GB, free: 12.75 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0026/0.3841, allocations: 1.377 MB / 0.5506 GB, free: 11.69 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 3.611e-05/0.3842, allocations: 1.406 kB / 0.5506 GB, free: 11.69 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 1.995e-05/0.3842, allocations: 3.938 kB / 0.5506 GB, free: 11.68 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.000187/0.3844, allocations: 9.531 kB / 0.5506 GB, free: 11.68 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.001216/0.3856, allocations: 250.4 kB / 0.5509 GB, free: 11.52 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 4.626e-05/0.3856, allocations: 8 kB / 0.5509 GB, free: 11.52 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 3.931e-05/0.3857, allocations: 5.328 kB / 0.5509 GB, free: 11.51 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 2.085e-05/0.3857, allocations: 5.547 kB / 0.5509 GB, free: 11.51 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 8.06e-05/0.3858, allocations: 7.938 kB / 0.5509 GB, free: 11.5 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 8.556e-06/0.3858, allocations: 1.125 kB / 0.5509 GB, free: 11.5 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.004202/0.39, allocations: 0.7502 MB / 0.5516 GB, free: 11.16 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 1.085e-05/0.39, allocations: 1.094 kB / 0.5516 GB, free: 11.16 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 2.534e-05/0.39, allocations: 1.125 kB / 0.5516 GB, free: 11.16 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0003253/0.3904, allocations: 178 kB / 0.5518 GB, free: 11.06 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.3904, allocations: 5.156 kB / 0.5518 GB, free: 11.05 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.373e-06/0.3904, allocations: 0 / 0.5518 GB, free: 11.05 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 5.03e-06/0.3904, allocations: 0 / 0.5518 GB, free: 11.05 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.0004146/0.3908, allocations: 311.5 kB / 0.5521 GB, free: 10.73 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.3908, allocations: 14.05 kB / 0.5521 GB, free: 10.73 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 3.663e-05/0.3909, allocations: 2 kB / 0.5521 GB, free: 10.73 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001281/0.391, allocations: 111.7 kB / 0.5522 GB, free: 10.6 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/0.391, allocations: 1.562 kB / 0.5522 GB, free: 10.6 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 8.906e-06/0.391, allocations: 5.5 kB / 0.5522 GB, free: 10.59 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 8.747e-05/0.3911, allocations: 32.39 kB / 0.5523 GB, free: 10.56 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.3911, allocations: 0 / 0.5523 GB, free: 10.56 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.327e-06/0.3911, allocations: 0 / 0.5523 GB, free: 10.56 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.3911, allocations: 1.25 kB / 0.5523 GB, free: 10.56 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 1.761e-05/0.3911, allocations: 5.125 kB / 0.5523 GB, free: 10.55 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001478/0.3913, allocations: 119.2 kB / 0.5524 GB, free: 10.4 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 6.203e-05/0.3913, allocations: 24.8 kB / 0.5524 GB, free: 10.37 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 1.737e-05/0.3914, allocations: 6.109 kB / 0.5524 GB, free: 10.36 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 5.169e-06/0.3914, allocations: 3.938 kB / 0.5524 GB, free: 10.36 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.495e-05/0.3914, allocations: 61.27 kB / 0.5525 GB, free: 10.28 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.3914, allocations: 1.156 kB / 0.5525 GB, free: 10.28 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1): time 0.0001958/0.3916, allocations: 71.86 kB / 0.5525 GB, free: 10.21 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.693e-05/0.3917, allocations: 82.48 kB / 0.5526 GB, free: 10.11 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.439e-05/0.3918, allocations: 92.3 kB / 0.5527 GB, free: 10.01 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.747e-05/0.3918, allocations: 26.61 kB / 0.5527 GB, free: 9.98 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 4.115e-05/0.3918, allocations: 84.12 kB / 0.5528 GB, free: 9.895 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 1.829e-05/0.3919, allocations: 1.094 kB / 0.5528 GB, free: 9.895 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.696e-05/0.3919, allocations: 11.91 kB / 0.5528 GB, free: 9.879 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001519/0.392, allocations: 320.2 kB / 0.5531 GB, free: 9.559 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 1.141e-05/0.3921, allocations: 1.156 kB / 0.5531 GB, free: 9.559 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 7.273e-06/0.3921, allocations: 1 kB / 0.5531 GB, free: 9.559 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 5.708e-05/0.3921, allocations: 59.67 kB / 0.5532 GB, free: 9.488 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.3921, allocations: 1.156 kB / 0.5532 GB, free: 9.488 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1) (initialization): time 8.256e-05/0.3922, allocations: 70.64 kB / 0.5533 GB, free: 9.414 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 4.726e-05/0.3922, allocations: 35.64 kB / 0.5533 GB, free: 9.379 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.3923, allocations: 3.984 kB / 0.5533 GB, free: 9.375 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.125e-05/0.3923, allocations: 5.25 kB / 0.5533 GB, free: 9.371 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.966e-06/0.3923, allocations: 4 kB / 0.5533 GB, free: 9.367 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.3923, allocations: 0 / 0.5533 GB, free: 9.367 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.645e-05/0.3923, allocations: 1.375 kB / 0.5533 GB, free: 9.367 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.363e-06/0.3923, allocations: 1.188 kB / 0.5533 GB, free: 9.367 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.0001037/0.3924, allocations: 141.5 kB / 0.5534 GB, free: 9.215 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.183e-05/0.3924, allocations: 5.094 kB / 0.5535 GB, free: 9.211 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.492e-05/0.3924, allocations: 7.109 kB / 0.5535 GB, free: 9.199 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.3924, allocations: 1.094 kB / 0.5535 GB, free: 9.199 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.3924, allocations: 7.938 kB / 0.5535 GB, free: 9.191 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.3924, allocations: 1.094 kB / 0.5535 GB, free: 9.191 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001265/0.3926, allocations: 119 kB / 0.5536 GB, free: 9.035 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.3926, allocations: 0 / 0.5536 GB, free: 9.035 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.938e-06/0.3926, allocations: 4.969 kB / 0.5536 GB, free: 9.031 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-06/0.3926, allocations: 0 / 0.5536 GB, free: 9.031 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.708e-06/0.3926, allocations: 5.125 kB / 0.5536 GB, free: 9.027 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.3926, allocations: 0 / 0.5536 GB, free: 9.027 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.3926, allocations: 1.188 kB / 0.5536 GB, free: 9.027 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001293/0.3927, allocations: 103.2 kB / 0.5537 GB, free: 8.914 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 1.002e-05/0.3927, allocations: 5 kB / 0.5537 GB, free: 8.91 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.389e-05/0.3927, allocations: 1.094 kB / 0.5537 GB, free: 8.91 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.027e-05/0.3928, allocations: 1.031 kB / 0.5537 GB, free: 8.91 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 1.447e-05/0.3928, allocations: 0 / 0.5537 GB, free: 8.91 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-06/0.3928, allocations: 1.094 kB / 0.5537 GB, free: 8.91 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 4.396e-05/0.3928, allocations: 81.03 kB / 0.5538 GB, free: 8.832 MB / 398.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.3928, allocations: 128 / 0.5538 GB, free: 8.832 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0003463/0.3932, allocations: 64.17 kB / 0.5538 GB, free: 8.812 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.0008898/0.3941, allocations: 346.5 kB / 0.5542 GB, free: 8.625 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001258/0.3942, allocations: 64.05 kB / 0.5542 GB, free: 8.555 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3942, allocations: 0 / 0.5542 GB, free: 8.555 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 4.421e-05/0.3942, allocations: 58.78 kB / 0.5543 GB, free: 8.488 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001374/0.3944, allocations: 6.5 kB / 0.5543 GB, free: 8.484 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002416/0.3946, allocations: 85.22 kB / 0.5544 GB, free: 8.383 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003625/0.395, allocations: 0.6788 MB / 0.555 GB, free: 7.68 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 6.802e-06/0.395, allocations: 0 / 0.555 GB, free: 7.68 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 1.481e-05/0.395, allocations: 8.562 kB / 0.555 GB, free: 7.672 MB / 398.1 MB
Notification: Performance of SimCode: time 4.11e-07/0.395, allocations: 0 / 0.555 GB, free: 7.672 MB / 398.1 MB
Notification: Performance of Templates: time 0.005385/0.4004, allocations: 1.601 MB / 0.5566 GB, free: 6.828 MB / 398.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins/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: 5.384588007815182]