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) 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) 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=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/ModelicaServices trunk/package.mo): time 0.001057/0.001057, allocations: 100.8 kB / 17.01 MB, free: 6.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001249/0.001249, allocations: 193.5 kB / 17.91 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.7 MB / 246.4 MB, free: 11.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002022/0.0002022, allocations: 4 kB / 307.1 MB, free: 1.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09314/0.09336, allocations: 51.52 MB / 358.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0004926/0.09389, allocations: 206.1 kB / 358.8 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001952/0.0941, allocations: 51.83 kB / 358.9 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.006e-05/0.09413, allocations: 0 / 358.9 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.894e-05/0.09416, allocations: 4 kB / 358.9 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.235e-05/0.09423, allocations: 15.97 kB / 358.9 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001314/0.09437, allocations: 19.98 kB / 358.9 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 4.728e-05/0.09442, allocations: 15.98 kB / 358.9 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.398e-05/0.09447, allocations: 0 / 358.9 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.896e-05/0.09451, allocations: 19.91 kB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.068e-05/0.09457, allocations: 15.98 kB / 359 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.641e-05/0.0946, allocations: 0 / 359 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.425e-05/0.09464, allocations: 7.938 kB / 359 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.844e-05/0.09467, allocations: 7.984 kB / 359 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.905e-05/0.09471, allocations: 37.64 kB / 359 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 6.614e-05/0.09478, allocations: 19.97 kB / 359 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.09479, allocations: 0 / 359 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.09479, allocations: 0 / 359 MB, free: 13.26 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.878e-06/0.0948, allocations: 0 / 359 MB, free: 13.26 MB / 302.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.0002943/0.0951, allocations: 357 kB / 359.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.09514, allocations: 8.031 kB / 359.4 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.452e-05/0.09518, allocations: 7.906 kB / 359.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001071/0.0953, allocations: 163.3 kB / 359.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.33e-05/0.09532, allocations: 4 kB / 359.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.026e-05/0.09533, allocations: 4 kB / 359.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001092/0.09545, allocations: 61.62 kB / 359.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.66e-06/0.09546, allocations: 0 / 359.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.819e-06/0.09548, allocations: 0 / 359.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.09548, allocations: 3.938 kB / 359.6 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.984e-05/0.09553, allocations: 35.92 kB / 359.7 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001318/0.09567, allocations: 153.7 kB / 359.8 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.023e-05/0.09574, allocations: 46.56 kB / 359.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.956e-05/0.09578, allocations: 36.92 kB / 359.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.713e-06/0.09579, allocations: 0 / 359.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.991e-05/0.09584, allocations: 60.27 kB / 360 MB, free: 12.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.142e-06/0.09585, allocations: 0 / 360 MB, free: 12.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002751/0.09613, allocations: 187.2 kB / 360.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.524e-05/0.09618, allocations: 77.11 kB / 360.2 MB, free: 11.87 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.865e-05/0.09627, allocations: 113.8 kB / 360.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.321e-05/0.09629, allocations: 33.73 kB / 360.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.717e-05/0.09633, allocations: 88.12 kB / 360.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.81e-05/0.09636, allocations: 4 kB / 360.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.845e-06/0.09636, allocations: 0 / 360.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.89e-05/0.09647, allocations: 318.8 kB / 360.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.35e-05/0.09651, allocations: 27.98 kB / 360.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.657e-05/0.09654, allocations: 23.98 kB / 360.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.025e-05/0.0966, allocations: 65.8 kB / 360.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.0966, allocations: 0 / 360.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001869/0.0968, allocations: 159.2 kB / 361 MB, free: 11.01 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.472e-05/0.09684, allocations: 33.7 kB / 361.1 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.9e-06/0.09685, allocations: 0 / 361.1 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.043e-05/0.09687, allocations: 3.953 kB / 361.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.264e-06/0.09688, allocations: 3.984 kB / 361.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.09689, allocations: 0 / 361.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.097e-05/0.09691, allocations: 4.25 kB / 361.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.713e-06/0.09693, allocations: 0 / 361.1 MB, free: 10.96 MB / 302.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 (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.895e-05/0.09702, allocations: 151.5 kB / 361.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.294e-05/0.09704, allocations: 8.031 kB / 361.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.612e-05/0.09706, allocations: 7.906 kB / 361.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.09707, allocations: 3.953 kB / 361.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.09708, allocations: 0 / 361.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-06/0.09709, allocations: 0 / 361.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.694e-05/0.09719, allocations: 161.6 kB / 361.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.0972, allocations: 0 / 361.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-07/0.0972, allocations: 0 / 361.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.09721, allocations: 3.984 kB / 361.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.304e-06/0.09722, allocations: 0 / 361.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.09723, allocations: 4 kB / 361.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.09724, allocations: 7.953 kB / 361.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001919/0.09743, allocations: 194.7 kB / 361.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.467e-05/0.09748, allocations: 85.03 kB / 361.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.98e-05/0.09751, allocations: 7.938 kB / 361.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.317e-05/0.09752, allocations: 0 / 361.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.532e-05/0.09754, allocations: 0 / 361.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.033e-05/0.09756, allocations: 11.95 kB / 361.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.381e-05/0.09761, allocations: 91.3 kB / 361.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09761, allocations: 0 / 361.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001912/0.09781, allocations: 8 kB / 361.8 MB, free: 10.11 MB / 302.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 (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.0002299/0.09804, allocations: 120.5 kB / 361.9 MB, free: 9.992 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000146/0.0982, allocations: 131.4 kB / 362 MB, free: 9.852 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.09821, allocations: 4.062 kB / 362.1 MB, free: 9.848 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.751e-05/0.09828, allocations: 103.3 kB / 362.2 MB, free: 9.734 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001312/0.09842, allocations: 4 kB / 362.2 MB, free: 9.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002193/0.09865, allocations: 138.6 kB / 362.3 MB, free: 9.566 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002295/0.09889, allocations: 0.6809 MB / 363 MB, free: 8.859 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.174e-06/0.0989, allocations: 3.984 kB / 363 MB, free: 8.855 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.448e-06/0.09892, allocations: 7.438 kB / 363 MB, free: 8.848 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.09893, allocations: 8.062 kB / 363 MB, free: 8.84 MB / 302.1 MB Notification: Performance of Templates: time 0.002547/0.1015, allocations: 0.6352 MB / 363.6 MB, free: 8.219 MB / 302.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches