Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.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.001911/0.001911, allocations: 112 kB / 20.43 MB, free: 1.449 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.0024/0.0024, allocations: 187.8 kB / 23.72 MB, free: 4.68 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.555/1.555, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB
"
[Timeout remaining time 178]
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(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile")
translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002266/0.002266, allocations: 47.92 kB / 370.9 MB, free: 9.387 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2861/0.2884, allocations: 52.19 MB / 423.1 MB, free: 14.72 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001741/0.2901, allocations: 0.4924 MB / 423.6 MB, free: 14.23 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.00029/0.2904, allocations: 59.62 kB / 423.6 MB, free: 14.18 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 3.285e-05/0.2905, allocations: 4 kB / 423.7 MB, free: 14.17 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 3.695e-05/0.2905, allocations: 7.984 kB / 423.7 MB, free: 14.16 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 7.903e-05/0.2906, allocations: 15.92 kB / 423.7 MB, free: 14.15 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0001736/0.2907, allocations: 11.98 kB / 423.7 MB, free: 14.14 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001074/0.2909, allocations: 27.97 kB / 423.7 MB, free: 14.11 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 3.976e-05/0.2909, allocations: 0 / 423.7 MB, free: 14.11 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 2.838e-05/0.2909, allocations: 8 kB / 423.7 MB, free: 14.1 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 8.091e-05/0.291, allocations: 31.89 kB / 423.8 MB, free: 14.07 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 1.571e-05/0.291, allocations: 0 / 423.8 MB, free: 14.07 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 4.511e-05/0.2911, allocations: 7.938 kB / 423.8 MB, free: 14.06 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 4.591e-05/0.2911, allocations: 11.98 kB / 423.8 MB, free: 14.05 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 3.088e-05/0.2911, allocations: 11.94 kB / 423.8 MB, free: 14.04 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0001055/0.2912, allocations: 23.91 kB / 423.8 MB, free: 14.02 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.2913, allocations: 0 / 423.8 MB, free: 14.02 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.102e-06/0.2913, allocations: 0 / 423.8 MB, free: 14.02 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 5.46e-06/0.2913, allocations: 0 / 423.8 MB, free: 14.02 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.0003778/0.2916, allocations: 289.2 kB / 424.1 MB, free: 13.7 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.2917, allocations: 12.03 kB / 424.1 MB, free: 13.69 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 3.477e-05/0.2917, allocations: 0.9375 kB / 424.1 MB, free: 13.69 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001552/0.2919, allocations: 118.4 kB / 424.2 MB, free: 13.55 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.655e-05/0.2919, allocations: 4.359 kB / 424.2 MB, free: 13.54 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.245e-05/0.2919, allocations: 4.375 kB / 424.2 MB, free: 13.54 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001436/0.292, allocations: 58.25 kB / 424.3 MB, free: 13.47 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.2921, allocations: 192 / 424.3 MB, free: 13.47 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.128e-05/0.2921, allocations: 3.938 kB / 424.3 MB, free: 13.47 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.2921, allocations: 0 / 424.3 MB, free: 13.47 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 4.447e-05/0.2921, allocations: 31.92 kB / 424.3 MB, free: 13.44 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001542/0.2923, allocations: 128.7 kB / 424.4 MB, free: 13.27 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 8.052e-05/0.2923, allocations: 50.61 kB / 424.5 MB, free: 13.21 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 3.836e-05/0.2924, allocations: 28.92 kB / 424.5 MB, free: 13.18 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.278e-05/0.2924, allocations: 3.984 kB / 424.5 MB, free: 13.18 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.15e-05/0.2925, allocations: 60.27 kB / 424.6 MB, free: 13.1 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.2925, allocations: 0 / 424.6 MB, free: 13.1 MB / 334.1 MB
Notification: Performance of matching and sorting (n=4): time 0.0003062/0.2928, allocations: 187.2 kB / 424.8 MB, free: 12.91 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.994e-05/0.2928, allocations: 81.11 kB / 424.8 MB, free: 12.81 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001062/0.2929, allocations: 113.8 kB / 425 MB, free: 12.69 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.293, allocations: 37.66 kB / 425 MB, free: 12.64 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 5.078e-05/0.293, allocations: 84.14 kB / 425.1 MB, free: 12.56 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.179e-05/0.293, allocations: 11.89 kB / 425.1 MB, free: 12.55 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.726e-05/0.2931, allocations: 21.72 kB / 425.1 MB, free: 12.52 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001378/0.2932, allocations: 314.8 kB / 425.4 MB, free: 12.2 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 3.768e-05/0.2932, allocations: 24 kB / 425.4 MB, free: 12.18 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 3.935e-05/0.2933, allocations: 27.98 kB / 425.5 MB, free: 12.15 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001102/0.2934, allocations: 120.2 kB / 425.6 MB, free: 12.02 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2934, allocations: 4.031 kB / 425.6 MB, free: 12.02 MB / 334.1 MB
Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001845/0.2936, allocations: 151.4 kB / 425.7 MB, free: 11.86 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 4.36e-05/0.2936, allocations: 37.69 kB / 425.8 MB, free: 11.81 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.2936, allocations: 3.938 kB / 425.8 MB, free: 11.81 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.2936, allocations: 0 / 425.8 MB, free: 11.81 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.2936, allocations: 0 / 425.8 MB, free: 11.81 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.2936, allocations: 256 / 425.8 MB, free: 11.81 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.386e-05/0.2937, allocations: 4 kB / 425.8 MB, free: 11.8 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.027e-05/0.2937, allocations: 4 kB / 425.8 MB, free: 11.8 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.0001286/0.2938, allocations: 151.6 kB / 425.9 MB, free: 11.64 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.851e-05/0.2938, allocations: 7.953 kB / 425.9 MB, free: 11.63 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.502e-05/0.2938, allocations: 15.94 kB / 426 MB, free: 11.61 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.2939, allocations: 0 / 426 MB, free: 11.61 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.2939, allocations: 0 / 426 MB, free: 11.61 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.2939, allocations: 0 / 426 MB, free: 11.61 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001253/0.294, allocations: 136.7 kB / 426.1 MB, free: 11.43 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.294, allocations: 0 / 426.1 MB, free: 11.43 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.294, allocations: 0 / 426.1 MB, free: 11.43 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.294, allocations: 0 / 426.1 MB, free: 11.43 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.737e-05/0.294, allocations: 11.88 kB / 426.1 MB, free: 11.42 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.294, allocations: 4 kB / 426.1 MB, free: 11.41 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.294, allocations: 3.938 kB / 426.1 MB, free: 11.41 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002434/0.2942, allocations: 190.8 kB / 426.3 MB, free: 11.2 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 1.337e-05/0.2943, allocations: 11.95 kB / 426.3 MB, free: 11.19 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2e-05/0.2943, allocations: 3.938 kB / 426.3 MB, free: 11.18 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.64e-05/0.2943, allocations: 4 kB / 426.3 MB, free: 11.18 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 1.817e-05/0.2943, allocations: 0 / 426.3 MB, free: 11.18 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.859e-06/0.2943, allocations: 0 / 426.3 MB, free: 11.18 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 7.299e-05/0.2944, allocations: 95.3 kB / 426.4 MB, free: 11.09 MB / 334.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.2944, allocations: 4 kB / 426.4 MB, free: 11.08 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0002197/0.2946, allocations: 8 kB / 426.4 MB, free: 11.07 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.0003635/0.295, allocations: 133.6 kB / 426.5 MB, free: 10.95 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001777/0.2952, allocations: 123.3 kB / 426.7 MB, free: 10.82 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2952, allocations: 0 / 426.7 MB, free: 10.82 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 7.985e-05/0.2952, allocations: 87.39 kB / 426.8 MB, free: 10.72 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001456/0.2954, allocations: 7.984 kB / 426.8 MB, free: 10.71 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002993/0.2957, allocations: 143.5 kB / 426.9 MB, free: 10.55 MB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003278/0.296, allocations: 0.6844 MB / 427.6 MB, free: 9.836 MB / 334.1 MB
Notification: Performance of simCode: alias equations: time 6.181e-06/0.296, allocations: 0 / 427.6 MB, free: 9.836 MB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 1.211e-05/0.296, allocations: 7.438 kB / 427.6 MB, free: 9.828 MB / 334.1 MB
Notification: Performance of SimCode: time 4.6e-07/0.296, allocations: 0 / 427.6 MB, free: 9.828 MB / 334.1 MB
Notification: Performance of Templates: time 0.003529/0.2996, allocations: 0.7018 MB / 428.3 MB, free: 9.133 MB / 334.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.631632048636675]