Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.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.001693/0.001693, allocations: 109 kB / 21.23 MB, free: 0.6641 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.001782/0.001782, allocations: 213.9 kB / 24.54 MB, free: 4.02 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.23 MB / 206.1 MB
"
[Timeout remaining time 178]
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(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile")
translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 63.89 kB / 378.7 MB, free: 2.797 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2654/0.2674, allocations: 53.37 MB / 432.1 MB, free: 7.07 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001743/0.2691, allocations: 492.6 kB / 432.6 MB, free: 6.594 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0002949/0.2694, allocations: 59.81 kB / 432.6 MB, free: 6.535 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 4.679e-05/0.2694, allocations: 0 / 432.6 MB, free: 6.535 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 3.054e-05/0.2695, allocations: 0 / 432.6 MB, free: 6.535 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 8.154e-05/0.2695, allocations: 19.91 kB / 432.6 MB, free: 6.516 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0001725/0.2697, allocations: 19.98 kB / 432.7 MB, free: 6.496 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.000115/0.2698, allocations: 19.97 kB / 432.7 MB, free: 6.477 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 5.636e-05/0.2699, allocations: 7.984 kB / 432.7 MB, free: 6.469 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 2.965e-05/0.2699, allocations: 8 kB / 432.7 MB, free: 6.461 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 8.344e-05/0.27, allocations: 35.83 kB / 432.7 MB, free: 6.426 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 1.616e-05/0.27, allocations: 0 / 432.7 MB, free: 6.426 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 4.693e-05/0.2701, allocations: 4 kB / 432.7 MB, free: 6.422 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 4.448e-05/0.2701, allocations: 7.984 kB / 432.7 MB, free: 6.414 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 3.387e-05/0.2701, allocations: 11.94 kB / 432.8 MB, free: 6.402 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 9.672e-05/0.2702, allocations: 27.56 kB / 432.8 MB, free: 6.379 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.2702, allocations: 4 kB / 432.8 MB, free: 6.375 MB / 334.1 MB
Notification: Performance of FrontEnd: time 2.004e-06/0.2703, allocations: 0 / 432.8 MB, free: 6.375 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 5.129e-06/0.2703, allocations: 0 / 432.8 MB, free: 6.375 MB / 334.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 4
 * Number of variables: 4
Notification: Performance of Generate backend data structure: time 0.0004022/0.2707, allocations: 282 kB / 433.1 MB, free: 6.062 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.2707, allocations: 12.03 kB / 433.1 MB, free: 6.051 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 3.724e-05/0.2707, allocations: 4.891 kB / 433.1 MB, free: 6.047 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001146/0.2708, allocations: 114.5 kB / 433.2 MB, free: 5.91 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.321e-05/0.2709, allocations: 4.312 kB / 433.2 MB, free: 5.906 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.595e-05/0.2709, allocations: 8.312 kB / 433.2 MB, free: 5.898 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001363/0.271, allocations: 62.23 kB / 433.3 MB, free: 5.832 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.271, allocations: 192 / 433.3 MB, free: 5.832 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.828e-06/0.271, allocations: 7.875 kB / 433.3 MB, free: 5.824 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.271, allocations: 0 / 433.3 MB, free: 5.824 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 4.382e-05/0.2711, allocations: 27.98 kB / 433.3 MB, free: 5.797 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001436/0.2712, allocations: 124.8 kB / 433.4 MB, free: 5.633 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 8.045e-05/0.2713, allocations: 46.56 kB / 433.5 MB, free: 5.578 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 4.389e-05/0.2713, allocations: 32.92 kB / 433.5 MB, free: 5.543 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 7.695e-06/0.2714, allocations: 4 kB / 433.5 MB, free: 5.539 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.745e-05/0.2714, allocations: 56.27 kB / 433.6 MB, free: 5.469 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=4): time 1.021e-06/0.2714, allocations: 0 / 433.6 MB, free: 5.469 MB / 334.1 MB
Notification: Performance of matching and sorting (n=4): time 0.000311/0.2717, allocations: 195.2 kB / 433.8 MB, free: 5.266 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.156e-05/0.2718, allocations: 77.11 kB / 433.8 MB, free: 5.172 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/0.2719, allocations: 109.8 kB / 433.9 MB, free: 5.055 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.877e-05/0.2719, allocations: 29.7 kB / 434 MB, free: 5.02 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 5.173e-05/0.272, allocations: 88.16 kB / 434 MB, free: 4.93 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.769e-05/0.272, allocations: 7.953 kB / 434.1 MB, free: 4.922 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.878e-05/0.272, allocations: 21.72 kB / 434.1 MB, free: 4.895 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001442/0.2722, allocations: 310.8 kB / 434.4 MB, free: 4.582 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 3.903e-05/0.2722, allocations: 27.98 kB / 434.4 MB, free: 4.555 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 3.241e-05/0.2722, allocations: 27.98 kB / 434.4 MB, free: 4.527 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.000117/0.2724, allocations: 120.4 kB / 434.6 MB, free: 4.395 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-06/0.2724, allocations: 0 / 434.6 MB, free: 4.395 MB / 334.1 MB
Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001837/0.2725, allocations: 155.5 kB / 434.7 MB, free: 4.23 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 5.12e-05/0.2726, allocations: 45.75 kB / 434.8 MB, free: 4.18 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.2726, allocations: 3.938 kB / 434.8 MB, free: 4.176 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.2726, allocations: 0 / 434.8 MB, free: 4.176 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.41e-07/0.2726, allocations: 0 / 434.8 MB, free: 4.176 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.2726, allocations: 4 kB / 434.8 MB, free: 4.172 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.346e-05/0.2726, allocations: 3.953 kB / 434.8 MB, free: 4.168 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.084e-05/0.2727, allocations: 4 kB / 434.8 MB, free: 4.164 MB / 334.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: 4 (success4,success3,success2,success1)
 * 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.0001123/0.2728, allocations: 147.5 kB / 434.9 MB, free: 4.004 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.071e-05/0.2728, allocations: 0 / 434.9 MB, free: 4.004 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.255e-05/0.2728, allocations: 15.94 kB / 434.9 MB, free: 3.98 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.2728, allocations: 3.938 kB / 434.9 MB, free: 3.977 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.2728, allocations: 0 / 434.9 MB, free: 3.977 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.823e-06/0.2728, allocations: 0 / 434.9 MB, free: 3.977 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001198/0.2729, allocations: 136.7 kB / 435.1 MB, free: 3.801 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.2729, allocations: 0 / 435.1 MB, free: 3.801 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.2729, allocations: 0 / 435.1 MB, free: 3.801 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.2729, allocations: 0 / 435.1 MB, free: 3.801 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/0.2729, allocations: 15.88 kB / 435.1 MB, free: 3.785 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.2729, allocations: 3.938 kB / 435.1 MB, free: 3.781 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.2729, allocations: 0 / 435.1 MB, free: 3.781 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002352/0.2732, allocations: 205.6 kB / 435.3 MB, free: 3.559 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 9.448e-06/0.2732, allocations: 4 kB / 435.3 MB, free: 3.555 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.829e-05/0.2732, allocations: 3.938 kB / 435.3 MB, free: 3.551 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.463e-05/0.2732, allocations: 4 kB / 435.3 MB, free: 3.547 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 1.575e-05/0.2732, allocations: 0 / 435.3 MB, free: 3.547 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.223e-06/0.2732, allocations: 4 kB / 435.3 MB, free: 3.543 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 6.81e-05/0.2733, allocations: 91.27 kB / 435.4 MB, free: 3.453 MB / 334.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.2733, allocations: 32 / 435.4 MB, free: 3.453 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.000193/0.2735, allocations: 12 kB / 435.4 MB, free: 3.441 MB / 334.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: 4 (success1,success2,success3,success4)
 * Number of discrete states: 4 (success4,success3,success2,success1)
 * 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.0003417/0.2738, allocations: 126.8 kB / 435.5 MB, free: 3.324 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001934/0.274, allocations: 123.3 kB / 435.6 MB, free: 3.191 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.274, allocations: 0 / 435.6 MB, free: 3.191 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 7.899e-05/0.2741, allocations: 91.45 kB / 435.7 MB, free: 3.09 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000148/0.2743, allocations: 7.984 kB / 435.7 MB, free: 3.082 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003053/0.2746, allocations: 140.9 kB / 435.9 MB, free: 2.918 MB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003402/0.2749, allocations: 0.6807 MB / 436.6 MB, free: 2.211 MB / 334.1 MB
Notification: Performance of simCode: alias equations: time 5.931e-06/0.2749, allocations: 3.938 kB / 436.6 MB, free: 2.207 MB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 1.245e-05/0.2749, allocations: 7.438 kB / 436.6 MB, free: 2.199 MB / 334.1 MB
Notification: Performance of SimCode: time 4.61e-07/0.2749, allocations: 0 / 436.6 MB, free: 2.199 MB / 334.1 MB
Notification: Performance of Templates: time 0.003472/0.2784, allocations: 0.6989 MB / 437.3 MB, free: 1.508 MB / 334.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660]
(rm -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.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: 4.5173932602629066]