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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001105/0.001105, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.194/1.194, allocations: 227.2 MB / 245 MB, free: 7.59 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008328/0.0008328, allocations: 95.5 kB / 297.3 MB, free: 6.168 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002024/0.0002025, allocations: 4 kB / 357.9 MB, free: 9.543 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1777/0.1779, allocations: 51.49 MB / 409.4 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08264/0.2606, allocations: 75.74 MB / 485.1 MB, free: 14.88 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001816/0.2608, allocations: 63.97 kB / 485.2 MB, free: 14.82 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001714/0.2625, allocations: 0.83 MB / 486 MB, free: 13.99 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2625, allocations: 0 / 486 MB, free: 13.99 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.135e-06/0.2626, allocations: 4.719 kB / 486 MB, free: 13.99 MB / 362.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.000305/0.2629, allocations: 365 kB / 486.4 MB, free: 13.58 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.388e-05/0.2629, allocations: 8.031 kB / 486.4 MB, free: 13.57 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.696e-05/0.263, allocations: 7.906 kB / 486.4 MB, free: 13.56 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.431e-05/0.2631, allocations: 159.1 kB / 486.6 MB, free: 13.37 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.24e-05/0.2631, allocations: 0 / 486.6 MB, free: 13.37 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.789e-05/0.2631, allocations: 7.984 kB / 486.6 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001344/0.2632, allocations: 77.59 kB / 486.6 MB, free: 13.28 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.202e-06/0.2633, allocations: 0 / 486.6 MB, free: 13.28 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.137e-05/0.2633, allocations: 4 kB / 486.7 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.2633, allocations: 0 / 486.7 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.747e-05/0.2633, allocations: 47.91 kB / 486.7 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001362/0.2635, allocations: 153.7 kB / 486.8 MB, free: 13.03 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.309e-05/0.2636, allocations: 54.59 kB / 486.9 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.418e-06/0.2636, allocations: 0 / 486.9 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.739e-05/0.2636, allocations: 71.53 kB / 487 MB, free: 12.88 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 9.22e-07/0.2636, allocations: 3.938 kB / 487 MB, free: 12.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003939/0.264, allocations: 316.3 kB / 487.3 MB, free: 12.54 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.11e-05/0.2641, allocations: 81.11 kB / 487.4 MB, free: 12.44 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.467e-05/0.2642, allocations: 108.9 kB / 487.5 MB, free: 12.33 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.435e-05/0.2642, allocations: 25.7 kB / 487.5 MB, free: 12.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.512e-05/0.2642, allocations: 84.12 kB / 487.6 MB, free: 12.21 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.021e-05/0.2643, allocations: 7.906 kB / 487.6 MB, free: 12.2 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.06e-06/0.2643, allocations: 3.938 kB / 487.6 MB, free: 12.2 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.2644, allocations: 318.8 kB / 487.9 MB, free: 11.88 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.851e-05/0.2644, allocations: 36 kB / 487.9 MB, free: 11.84 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.4e-05/0.2645, allocations: 39.97 kB / 488 MB, free: 11.8 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.507e-05/0.2646, allocations: 65.67 kB / 488 MB, free: 11.73 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.2646, allocations: 4 kB / 488 MB, free: 11.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002162/0.2648, allocations: 183.3 kB / 488.2 MB, free: 11.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.007e-05/0.2648, allocations: 37.69 kB / 488.3 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.2648, allocations: 3.938 kB / 488.3 MB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.2649, allocations: 3.953 kB / 488.3 MB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.718e-06/0.2649, allocations: 4 kB / 488.3 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.627e-06/0.2649, allocations: 0 / 488.3 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.925e-05/0.2649, allocations: 320 / 488.3 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.241e-05/0.2649, allocations: 12 kB / 488.3 MB, free: 11.47 MB / 362.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.56e-05/0.265, allocations: 147.5 kB / 488.4 MB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.278e-05/0.265, allocations: 4 kB / 488.4 MB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.486e-05/0.2651, allocations: 3.906 kB / 488.4 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.2651, allocations: 0 / 488.4 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.2651, allocations: 7.938 kB / 488.4 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.225e-06/0.2651, allocations: 0 / 488.4 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.78e-05/0.2652, allocations: 157.7 kB / 488.6 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.2652, allocations: 3.984 kB / 488.6 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.2652, allocations: 4 kB / 488.6 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.2652, allocations: 0 / 488.6 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/0.2652, allocations: 4 kB / 488.6 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.2652, allocations: 0 / 488.6 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.2652, allocations: 4 kB / 488.6 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002636/0.2655, allocations: 242.7 kB / 488.8 MB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.957e-05/0.2656, allocations: 77.11 kB / 488.9 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.714e-05/0.2656, allocations: 0 / 488.9 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.416e-05/0.2656, allocations: 8.031 kB / 488.9 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.136e-05/0.2656, allocations: 4 kB / 488.9 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.371e-05/0.2656, allocations: 11.98 kB / 488.9 MB, free: 10.69 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.889e-05/0.2657, allocations: 87.23 kB / 489 MB, free: 10.61 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2657, allocations: 0 / 489 MB, free: 10.61 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000174/0.2659, allocations: 11.94 kB / 489 MB, free: 10.59 MB / 362.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) * 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 (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.0002646/0.2661, allocations: 149 kB / 489.2 MB, free: 10.46 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001312/0.2663, allocations: 123.4 kB / 489.3 MB, free: 10.32 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2663, allocations: 0 / 489.3 MB, free: 10.32 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.524e-05/0.2664, allocations: 99.38 kB / 489.4 MB, free: 10.21 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.483e-05/0.2665, allocations: 0 / 489.4 MB, free: 10.21 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002202/0.2667, allocations: 146.8 kB / 489.6 MB, free: 10.04 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002329/0.2669, allocations: 0.6809 MB / 490.2 MB, free: 9.336 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.528e-06/0.2669, allocations: 0 / 490.2 MB, free: 9.336 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.755e-06/0.2669, allocations: 11.44 kB / 490.2 MB, free: 9.324 MB / 362.7 MB Notification: Performance of SimCode: time 3.8e-07/0.267, allocations: 0 / 490.2 MB, free: 9.324 MB / 362.7 MB Notification: Performance of Templates: time 0.002242/0.2692, allocations: 0.6251 MB / 490.9 MB, free: 8.715 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (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) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches