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.001064/0.001064, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001844/0.001844, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 246.3 MB, free: 10.87 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001044/0.001044, allocations: 60 kB / 306.2 MB, free: 1.098 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07445/0.0755, allocations: 50.54 MB / 356.8 MB, free: 14.56 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001681/0.07722, allocations: 0.5323 MB / 357.3 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002826/0.07751, allocations: 63.78 kB / 357.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.683e-05/0.07754, allocations: 0 / 357.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.212e-05/0.07759, allocations: 0 / 357.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.902e-05/0.07766, allocations: 15.98 kB / 357.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001468/0.07781, allocations: 19.97 kB / 357.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.223e-05/0.07787, allocations: 19.98 kB / 357.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.812e-05/0.07792, allocations: 0 / 357.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.793e-05/0.07795, allocations: 8 kB / 357.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.963e-05/0.07802, allocations: 27.89 kB / 357.5 MB, free: 13.87 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.747e-05/0.07805, allocations: 4 kB / 357.5 MB, free: 13.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.881e-05/0.07809, allocations: 7.938 kB / 357.5 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.358e-05/0.07814, allocations: 12 kB / 357.5 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.19e-05/0.07818, allocations: 3.938 kB / 357.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.294e-05/0.07828, allocations: 27.91 kB / 357.5 MB, free: 13.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.07829, allocations: 3.984 kB / 357.5 MB, free: 13.81 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.0783, allocations: 4 kB / 357.5 MB, free: 13.81 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.558e-06/0.07831, allocations: 0 / 357.5 MB, free: 13.81 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.0003181/0.07863, allocations: 357.2 kB / 357.9 MB, free: 13.4 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.175e-05/0.07867, allocations: 8.031 kB / 357.9 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.218e-05/0.0787, allocations: 4.844 kB / 357.9 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.911e-05/0.07881, allocations: 176.6 kB / 358.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.548e-06/0.07883, allocations: 384 / 358.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.171e-05/0.07884, allocations: 8.375 kB / 358.1 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.556e-05/0.07894, allocations: 58.23 kB / 358.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.42e-06/0.07896, allocations: 4.125 kB / 358.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/0.07897, allocations: 3.938 kB / 358.1 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.07898, allocations: 3.984 kB / 358.1 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.707e-05/0.07902, allocations: 31.92 kB / 358.2 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001215/0.07915, allocations: 153.7 kB / 358.3 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.578e-05/0.07921, allocations: 50.56 kB / 358.4 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.537e-05/0.07926, allocations: 40.92 kB / 358.4 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.386e-06/0.07927, allocations: 0 / 358.4 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.474e-05/0.07931, allocations: 60.27 kB / 358.5 MB, free: 12.69 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 8.72e-07/0.07932, allocations: 0 / 358.5 MB, free: 12.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002502/0.07957, allocations: 191.1 kB / 358.7 MB, free: 12.49 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.698e-05/0.07962, allocations: 77.11 kB / 358.7 MB, free: 12.4 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.793e-05/0.0797, allocations: 117.9 kB / 358.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.113e-05/0.07972, allocations: 25.7 kB / 358.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.139e-05/0.07976, allocations: 88.08 kB / 359 MB, free: 12.15 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.722e-05/0.07978, allocations: 11.89 kB / 359 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.704e-05/0.07981, allocations: 13.72 kB / 359 MB, free: 12.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.07992, allocations: 318.8 kB / 359.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.936e-05/0.07995, allocations: 23.98 kB / 359.3 MB, free: 11.78 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.711e-05/0.07999, allocations: 27.98 kB / 359.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.31e-05/0.08008, allocations: 124.3 kB / 359.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.08008, allocations: 3.938 kB / 359.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001411/0.08023, allocations: 147.4 kB / 359.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.712e-05/0.08026, allocations: 37.69 kB / 359.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.08027, allocations: 3.938 kB / 359.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.318e-06/0.08029, allocations: 0 / 359.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.08029, allocations: 0 / 359.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.0803, allocations: 0 / 359.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.745e-05/0.08032, allocations: 3.906 kB / 359.7 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.508e-06/0.08034, allocations: 4 kB / 359.7 MB, free: 11.4 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 (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 8.77e-05/0.08043, allocations: 159.5 kB / 359.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.179e-05/0.08045, allocations: 4 kB / 359.8 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.306e-05/0.08047, allocations: 7.844 kB / 359.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.08047, allocations: 0 / 359.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.08048, allocations: 0 / 359.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.08048, allocations: 0 / 359.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.483e-05/0.08059, allocations: 165.8 kB / 360 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.08059, allocations: 4 kB / 360 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.0806, allocations: 0 / 360 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.08061, allocations: 8 kB / 360 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.08062, allocations: 3.938 kB / 360 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.41e-07/0.08062, allocations: 0 / 360 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.08063, allocations: 3.938 kB / 360 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000182/0.08082, allocations: 190.8 kB / 360.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.036e-05/0.08087, allocations: 89.14 kB / 360.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.524e-05/0.08089, allocations: 3.938 kB / 360.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.459e-05/0.08091, allocations: 7.984 kB / 360.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.718e-06/0.08093, allocations: 4.031 kB / 360.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-06/0.08093, allocations: 4 kB / 360.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.889e-05/0.08098, allocations: 91.27 kB / 360.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.08098, allocations: 0 / 360.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001783/0.08117, allocations: 8 kB / 360.4 MB, free: 10.54 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 (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.0002205/0.08139, allocations: 127.1 kB / 360.5 MB, free: 10.42 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001367/0.08154, allocations: 135.3 kB / 360.7 MB, free: 10.28 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.08155, allocations: 0 / 360.7 MB, free: 10.28 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.895e-05/0.08162, allocations: 95.39 kB / 360.8 MB, free: 10.17 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001275/0.08175, allocations: 4 kB / 360.8 MB, free: 10.17 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002052/0.08197, allocations: 146.7 kB / 360.9 MB, free: 9.996 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002207/0.0822, allocations: 0.681 MB / 361.6 MB, free: 9.289 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.981e-06/0.08221, allocations: 8 kB / 361.6 MB, free: 9.281 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.496e-06/0.08222, allocations: 7.438 kB / 361.6 MB, free: 9.273 MB / 302.1 MB Notification: Performance of SimCode: time 1.8e-07/0.08223, allocations: 0 / 361.6 MB, free: 9.273 MB / 302.1 MB Notification: Performance of Templates: time 0.0023/0.08453, allocations: 0.6645 MB / 362.3 MB, free: 8.621 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