Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001451/0.001451, allocations: 171.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.562/1.562, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009085/0.0009084, allocations: 78.7 kB / 267.9 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.58e-05/2.583e-05, allocations: 4 kB / 322.4 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1111, allocations: 47.57 MB / 370 MB, free: 1.727 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3574/0.4686, allocations: 73.99 MB / 444 MB, free: 3.203 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002465/0.4688, allocations: 58.91 kB / 444.1 MB, free: 3.172 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002972/0.4718, allocations: 0.8239 MB / 444.9 MB, free: 2.43 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4719, allocations: 0 / 444.9 MB, free: 2.43 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.4719, allocations: 3.938 kB / 444.9 MB, free: 2.43 MB / 314.7 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.0003601/0.4723, allocations: 357.3 kB / 445.2 MB, free: 2.031 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.35e-05/0.4723, allocations: 12.03 kB / 445.2 MB, free: 2.02 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.735e-05/0.4724, allocations: 4 kB / 445.2 MB, free: 2.016 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001672/0.4726, allocations: 163.1 kB / 445.4 MB, free: 1.816 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.818e-05/0.4726, allocations: 0 / 445.4 MB, free: 1.816 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.265e-05/0.4727, allocations: 3.984 kB / 445.4 MB, free: 1.812 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002207/0.4729, allocations: 85.41 kB / 445.5 MB, free: 1.727 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/0.4729, allocations: 2.125 kB / 445.5 MB, free: 1.727 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.692e-05/0.4729, allocations: 0 / 445.5 MB, free: 1.727 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.473, allocations: 0 / 445.5 MB, free: 1.727 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001194/0.4731, allocations: 43.91 kB / 445.5 MB, free: 1.684 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001897/0.4733, allocations: 157 kB / 445.7 MB, free: 1.484 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001463/0.4735, allocations: 58.03 kB / 445.7 MB, free: 1.422 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001007/0.4736, allocations: 44.16 kB / 445.8 MB, free: 1.379 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.297e-06/0.4736, allocations: 0 / 445.8 MB, free: 1.379 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.899e-05/0.4737, allocations: 64.22 kB / 445.9 MB, free: 1.301 MB / 314.7 MB Notification: Performance of pre-optimization done (n=4): time 1.433e-06/0.4737, allocations: 0 / 445.9 MB, free: 1.301 MB / 314.7 MB Notification: Performance of matching and sorting (n=4): time 0.0005585/0.4743, allocations: 196.6 kB / 446 MB, free: 1.102 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.497e-05/0.4744, allocations: 85.91 kB / 446.1 MB, free: 1 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001355/0.4745, allocations: 107.2 kB / 446.2 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.805e-05/0.4746, allocations: 25.7 kB / 446.3 MB, free: 0.8633 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.445e-05/0.4746, allocations: 80.14 kB / 446.3 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.383e-05/0.4747, allocations: 10.28 kB / 446.3 MB, free: 0.7734 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.085e-06/0.4747, allocations: 0 / 446.3 MB, free: 0.7734 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.4749, allocations: 317.9 kB / 446.7 MB, free: 468 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/0.475, allocations: 41.98 kB / 446.7 MB, free: 428 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.686e-05/0.4751, allocations: 39.97 kB / 446.7 MB, free: 388 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001176/0.4752, allocations: 69.05 kB / 446.8 MB, free: 316 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.4753, allocations: 0 / 446.8 MB, free: 316 kB / 314.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000446/0.4757, allocations: 190.4 kB / 447 MB, free: 116 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.792e-05/0.4758, allocations: 33.7 kB / 447 MB, free: 76 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.4758, allocations: 0 / 447 MB, free: 76 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.074e-05/0.4758, allocations: 3.953 kB / 447 MB, free: 72 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.653e-06/0.4758, allocations: 0 / 447 MB, free: 72 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.4759, allocations: 0 / 447 MB, free: 72 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.122e-05/0.4759, allocations: 0 / 447 MB, free: 72 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.26e-05/0.476, allocations: 19.45 kB / 447 MB, free: 60 kB / 314.7 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 (success1,success2,success3,success4) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001548/0.4761, allocations: 134.7 kB / 447.2 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.937e-05/0.4762, allocations: 7.906 kB / 447.2 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.101e-05/0.4762, allocations: 8.031 kB / 447.2 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.4762, allocations: 3.953 kB / 447.2 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.4763, allocations: 0 / 447.2 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.4763, allocations: 0 / 447.2 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001713/0.4765, allocations: 164.4 kB / 447.4 MB, free: 15.69 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.4765, allocations: 3.938 kB / 447.4 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.92e-07/0.4765, allocations: 0 / 447.4 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.043e-06/0.4765, allocations: 4 kB / 447.4 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.926e-05/0.4765, allocations: 7.984 kB / 447.4 MB, free: 15.67 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.4765, allocations: 0 / 447.4 MB, free: 15.67 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.4766, allocations: 3.953 kB / 447.4 MB, free: 15.67 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004976/0.4771, allocations: 230.4 kB / 447.6 MB, free: 15.43 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.405e-05/0.4771, allocations: 85.02 kB / 447.7 MB, free: 15.32 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.741e-05/0.4772, allocations: 0 / 447.7 MB, free: 15.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.911e-05/0.4772, allocations: 4 kB / 447.7 MB, free: 15.32 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.324e-05/0.4773, allocations: 7.719 kB / 447.7 MB, free: 15.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.396e-05/0.4773, allocations: 11.94 kB / 447.7 MB, free: 15.3 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.579e-05/0.4774, allocations: 95.2 kB / 447.8 MB, free: 15.21 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4774, allocations: 0 / 447.8 MB, free: 15.21 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000316/0.4777, allocations: 8 kB / 447.8 MB, free: 15.21 MB / 330.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003401/0.4781, allocations: 129.6 kB / 447.9 MB, free: 15.08 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002376/0.4783, allocations: 118.7 kB / 448 MB, free: 14.96 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.4784, allocations: 0 / 448 MB, free: 14.96 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001123/0.4785, allocations: 102.5 kB / 448.1 MB, free: 14.86 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00014/0.4786, allocations: 11.42 kB / 448.2 MB, free: 14.85 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003231/0.479, allocations: 100.8 kB / 448.3 MB, free: 14.73 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003486/0.4793, allocations: 0.6848 MB / 448.9 MB, free: 14.02 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.145e-06/0.4794, allocations: 0 / 448.9 MB, free: 14.02 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.319e-05/0.4794, allocations: 11.56 kB / 449 MB, free: 14.01 MB / 330.7 MB Notification: Performance of SimCode: time 3.016e-06/0.4794, allocations: 0 / 449 MB, free: 14.01 MB / 330.7 MB Notification: Performance of Templates: time 0.003948/0.4834, allocations: 0.6323 MB / 449.6 MB, free: 13.38 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","../files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches