Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.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.001351/0.001351, allocations: 100.6 kB / 21.22 MB, free: 0.6562 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.001777/0.001777, allocations: 185.2 kB / 24.51 MB, free: 4.012 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.499/1.499, allocations: 225.6 MB / 253.3 MB, free: 13.04 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.2504/0.2504, allocations: 44.91 MB / 353.5 MB, free: 11.83 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.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile")
translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002/0.002, allocations: 67.89 kB / 497.7 MB, free: 1.043 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3846/0.3866, allocations: 64.29 MB / 0.5488 GB, free: 13.13 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.00176/0.3884, allocations: 0.4916 MB / 0.5493 GB, free: 12.77 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0006403/0.389, allocations: 220.3 kB / 0.5495 GB, free: 12.61 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 2.685e-05/0.3891, allocations: 0 / 0.5495 GB, free: 12.61 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 1.847e-05/0.3891, allocations: 1.344 kB / 0.5495 GB, free: 12.61 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 7.313e-06/0.3891, allocations: 3.938 kB / 0.5495 GB, free: 12.61 MB / 398.1 MB
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:290:3-321:16:writable] Warning: Pure function 'ModelicaTest.Utilities.WriteFile' contains a call to impure function 'Modelica.Utilities.Streams.print'.
Notification: Performance of NFTyping.typeClassSections: time 0.0003291/0.3894, allocations: 49.61 kB / 0.5495 GB, free: 12.57 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 5.72e-05/0.3895, allocations: 1.75 kB / 0.5495 GB, free: 12.57 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 4.33e-05/0.3895, allocations: 1.344 kB / 0.5495 GB, free: 12.57 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 1.48e-05/0.3895, allocations: 0 / 0.5495 GB, free: 12.57 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 2.338e-05/0.3896, allocations: 1.125 kB / 0.5495 GB, free: 12.57 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 9.648e-06/0.3896, allocations: 3.984 kB / 0.5495 GB, free: 12.57 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001369/0.3897, allocations: 58.17 kB / 0.5496 GB, free: 12.54 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 8.296e-06/0.3897, allocations: 1.188 kB / 0.5496 GB, free: 12.54 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 1.957e-05/0.3897, allocations: 0 / 0.5496 GB, free: 12.54 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0001239/0.3899, allocations: 40.88 kB / 0.5496 GB, free: 12.52 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.3899, allocations: 5.188 kB / 0.5496 GB, free: 12.52 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.874e-06/0.3899, allocations: 0 / 0.5496 GB, free: 12.52 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 5.57e-06/0.3899, allocations: 0 / 0.5496 GB, free: 12.52 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.0003532/0.3902, allocations: 275.3 kB / 0.5499 GB, free: 12.22 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.3903, allocations: 10.36 kB / 0.5499 GB, free: 12.22 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 3.265e-05/0.3903, allocations: 0.9375 kB / 0.5499 GB, free: 12.22 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 9.054e-05/0.3904, allocations: 111.6 kB / 0.55 GB, free: 12.09 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.356e-06/0.3904, allocations: 1.906 kB / 0.55 GB, free: 12.09 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.156e-05/0.3904, allocations: 384 / 0.55 GB, free: 12.09 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 9.554e-05/0.3905, allocations: 33.14 kB / 0.5501 GB, free: 12.05 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.3905, allocations: 192 / 0.5501 GB, free: 12.05 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.948e-06/0.3905, allocations: 3.938 kB / 0.5501 GB, free: 12.05 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.3905, allocations: 1.375 kB / 0.5501 GB, free: 12.05 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 2.21e-05/0.3906, allocations: 5.438 kB / 0.5501 GB, free: 12.05 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000146/0.3907, allocations: 122.1 kB / 0.5502 GB, free: 11.89 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 4.953e-05/0.3907, allocations: 19.86 kB / 0.5502 GB, free: 11.86 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 1.631e-05/0.3908, allocations: 6.234 kB / 0.5502 GB, free: 11.85 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 8.616e-06/0.3908, allocations: 4 kB / 0.5502 GB, free: 11.85 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.755e-05/0.3908, allocations: 61.5 kB / 0.5503 GB, free: 11.77 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.3908, allocations: 1.406 kB / 0.5503 GB, free: 11.77 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1): time 0.0002035/0.391, allocations: 69.92 kB / 0.5503 GB, free: 11.7 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.953e-05/0.3911, allocations: 78.67 kB / 0.5504 GB, free: 11.61 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.042e-05/0.3911, allocations: 97.8 kB / 0.5505 GB, free: 11.5 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.775e-05/0.3912, allocations: 25.7 kB / 0.5505 GB, free: 11.47 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 3.428e-05/0.3912, allocations: 85.83 kB / 0.5506 GB, free: 11.38 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/0.3912, allocations: 0 / 0.5506 GB, free: 11.38 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 2.849e-05/0.3912, allocations: 12.47 kB / 0.5506 GB, free: 11.37 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001289/0.3914, allocations: 310.8 kB / 0.5509 GB, free: 11.05 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 1.087e-05/0.3914, allocations: 1.531 kB / 0.5509 GB, free: 11.05 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 4.879e-06/0.3914, allocations: 0 / 0.5509 GB, free: 11.05 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 5.982e-05/0.3914, allocations: 68.53 kB / 0.551 GB, free: 10.98 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.3914, allocations: 0 / 0.551 GB, free: 10.98 MB / 398.1 MB
Notification: Performance of matching and sorting (n=1) (initialization): time 7.356e-05/0.3915, allocations: 66.41 kB / 0.5511 GB, free: 10.91 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 3.878e-05/0.3916, allocations: 35.52 kB / 0.5511 GB, free: 10.87 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.3916, allocations: 0 / 0.5511 GB, free: 10.87 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.3916, allocations: 3.938 kB / 0.5511 GB, free: 10.87 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.623e-06/0.3916, allocations: 1.312 kB / 0.5511 GB, free: 10.87 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.3916, allocations: 0 / 0.5511 GB, free: 10.87 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.69e-05/0.3916, allocations: 3.984 kB / 0.5511 GB, free: 10.86 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.803e-06/0.3916, allocations: 1.156 kB / 0.5511 GB, free: 10.86 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 9.59e-05/0.3917, allocations: 138.6 kB / 0.5512 GB, free: 10.71 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 9.368e-06/0.3917, allocations: 7.984 kB / 0.5512 GB, free: 10.71 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.852e-05/0.3917, allocations: 16.14 kB / 0.5512 GB, free: 10.69 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.3917, allocations: 0 / 0.5512 GB, free: 10.69 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.3917, allocations: 0 / 0.5512 GB, free: 10.69 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.3917, allocations: 5.531 kB / 0.5513 GB, free: 10.68 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.933e-05/0.3918, allocations: 118.4 kB / 0.5514 GB, free: 10.53 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.61e-07/0.3918, allocations: 0 / 0.5514 GB, free: 10.53 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-07/0.3918, allocations: 0 / 0.5514 GB, free: 10.53 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.3918, allocations: 1.156 kB / 0.5514 GB, free: 10.53 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/0.3918, allocations: 3.938 kB / 0.5514 GB, free: 10.52 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.71e-07/0.3918, allocations: 5.344 kB / 0.5514 GB, free: 10.52 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3918, allocations: 0 / 0.5514 GB, free: 10.52 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001023/0.3919, allocations: 94.3 kB / 0.5515 GB, free: 10.41 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 4.358e-06/0.3919, allocations: 0 / 0.5515 GB, free: 10.41 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.828e-05/0.392, allocations: 5.375 kB / 0.5515 GB, free: 10.41 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.808e-06/0.392, allocations: 1.375 kB / 0.5515 GB, free: 10.41 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 1.917e-05/0.392, allocations: 3.984 kB / 0.5515 GB, free: 10.41 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-06/0.392, allocations: 1.312 kB / 0.5515 GB, free: 10.41 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 3.361e-05/0.392, allocations: 79.31 kB / 0.5516 GB, free: 10.33 MB / 398.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.392, allocations: 0 / 0.5516 GB, free: 10.33 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0002339/0.3923, allocations: 24.3 kB / 0.5516 GB, free: 10.32 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.000482/0.3927, allocations: 212.7 kB / 0.5518 GB, free: 10.18 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001105/0.3929, allocations: 59.62 kB / 0.5518 GB, free: 10.11 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3929, allocations: 1.344 kB / 0.5518 GB, free: 10.11 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 3.589e-05/0.3929, allocations: 58.59 kB / 0.5519 GB, free: 10.04 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001156/0.393, allocations: 1.594 kB / 0.5519 GB, free: 10.04 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001939/0.3932, allocations: 83.62 kB / 0.552 GB, free: 9.941 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002745/0.3935, allocations: 0.674 MB / 0.5526 GB, free: 9.242 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 5.851e-06/0.3935, allocations: 0 / 0.5526 GB, free: 9.242 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 1.144e-05/0.3935, allocations: 9.062 kB / 0.5526 GB, free: 9.234 MB / 398.1 MB
Notification: Performance of SimCode: time 3.01e-07/0.3935, allocations: 0 / 0.5526 GB, free: 9.234 MB / 398.1 MB
Notification: Performance of Templates: time 0.003459/0.397, allocations: 0.5846 MB / 0.5532 GB, free: 8.922 MB / 398.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660]
(rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.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.372217622585595]