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.001667/0.001667, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 226.7 MB / 245.5 MB, free: 6.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001002/0.001002, allocations: 109.4 kB / 296.7 MB, free: 6.469 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008978/0.0008979, allocations: 51.92 kB / 356.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1939/0.1948, allocations: 50.45 MB / 407 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001395/0.1963, allocations: 0.5366 MB / 407.6 MB, free: 27.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002183/0.1965, allocations: 67.75 kB / 407.6 MB, free: 27.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.487e-05/0.1965, allocations: 0 / 407.6 MB, free: 27.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.444e-05/0.1965, allocations: 0 / 407.6 MB, free: 27.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.311e-05/0.1966, allocations: 15.97 kB / 407.7 MB, free: 27.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00012/0.1967, allocations: 24.53 kB / 407.7 MB, free: 27.19 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.318e-05/0.1968, allocations: 19.98 kB / 407.7 MB, free: 27.17 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.096e-05/0.1968, allocations: 0 / 407.7 MB, free: 27.17 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.198e-05/0.1968, allocations: 15.98 kB / 407.7 MB, free: 27.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.427e-05/0.1969, allocations: 23.91 kB / 407.7 MB, free: 27.13 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.44e-05/0.1969, allocations: 0 / 407.7 MB, free: 27.13 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.308e-05/0.197, allocations: 8 kB / 407.7 MB, free: 27.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.37e-05/0.197, allocations: 0 / 407.7 MB, free: 27.12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.806e-05/0.197, allocations: 15.92 kB / 407.8 MB, free: 27.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.286e-05/0.1971, allocations: 27.91 kB / 407.8 MB, free: 27.08 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.267e-06/0.1971, allocations: 0 / 407.8 MB, free: 27.08 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.1971, allocations: 0 / 407.8 MB, free: 27.08 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.521e-06/0.1971, allocations: 4 kB / 407.8 MB, free: 27.08 MB / 298.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.0002297/0.1974, allocations: 357.2 kB / 408.1 MB, free: 26.67 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.981e-05/0.1974, allocations: 12.59 kB / 408.2 MB, free: 26.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.753e-05/0.1974, allocations: 4.844 kB / 408.2 MB, free: 26.66 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.009e-05/0.1975, allocations: 165.9 kB / 408.3 MB, free: 26.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.578e-06/0.1975, allocations: 384 / 408.3 MB, free: 26.46 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.867e-06/0.1975, allocations: 4.375 kB / 408.3 MB, free: 26.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.535e-05/0.1976, allocations: 74.09 kB / 408.4 MB, free: 26.38 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.553e-06/0.1976, allocations: 192 / 408.4 MB, free: 26.38 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.354e-06/0.1977, allocations: 7.938 kB / 408.4 MB, free: 26.37 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.1977, allocations: 0 / 408.4 MB, free: 26.37 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.084e-05/0.1977, allocations: 27.98 kB / 408.4 MB, free: 26.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.109e-05/0.1978, allocations: 160.7 kB / 408.6 MB, free: 26.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.424e-05/0.1978, allocations: 46.56 kB / 408.6 MB, free: 26.08 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.705e-05/0.1979, allocations: 32.92 kB / 408.7 MB, free: 26.05 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.232e-06/0.1979, allocations: 0 / 408.7 MB, free: 26.05 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.088e-05/0.1979, allocations: 72.2 kB / 408.7 MB, free: 25.96 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 8.92e-07/0.1979, allocations: 0 / 408.7 MB, free: 25.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001974/0.1981, allocations: 183.2 kB / 408.9 MB, free: 25.77 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.457e-05/0.1981, allocations: 77.11 kB / 409 MB, free: 25.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.495e-05/0.1982, allocations: 113.8 kB / 409.1 MB, free: 25.55 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.112e-06/0.1982, allocations: 29.7 kB / 409.1 MB, free: 25.52 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.674e-05/0.1982, allocations: 84.12 kB / 409.2 MB, free: 25.43 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.365e-05/0.1983, allocations: 7.906 kB / 409.2 MB, free: 25.43 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.567e-05/0.1983, allocations: 21.75 kB / 409.2 MB, free: 25.4 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.456e-05/0.1983, allocations: 314.8 kB / 409.5 MB, free: 25.08 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.781e-05/0.1984, allocations: 31.98 kB / 409.6 MB, free: 25.05 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.094e-05/0.1984, allocations: 27.92 kB / 409.6 MB, free: 25.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.947e-05/0.1985, allocations: 116.5 kB / 409.7 MB, free: 24.89 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1985, allocations: 4 kB / 409.7 MB, free: 24.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001474/0.1986, allocations: 155.4 kB / 409.9 MB, free: 24.73 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.1986, allocations: 33.69 kB / 409.9 MB, free: 24.69 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.1987, allocations: 3.938 kB / 409.9 MB, free: 24.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.889e-06/0.1987, allocations: 8.062 kB / 409.9 MB, free: 24.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.22e-07/0.1987, allocations: 0 / 409.9 MB, free: 24.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.1987, allocations: 0 / 409.9 MB, free: 24.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.704e-05/0.1987, allocations: 0 / 409.9 MB, free: 24.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.763e-06/0.1987, allocations: 4 kB / 409.9 MB, free: 24.67 MB / 298.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 (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 5.14e-05/0.1988, allocations: 149 kB / 410.1 MB, free: 24.51 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.094e-05/0.1988, allocations: 7.906 kB / 410.1 MB, free: 24.5 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.123e-05/0.1988, allocations: 11.84 kB / 410.1 MB, free: 24.48 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.81e-07/0.1988, allocations: 3.938 kB / 410.1 MB, free: 24.48 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.1988, allocations: 4 kB / 410.1 MB, free: 24.47 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-06/0.1988, allocations: 3.938 kB / 410.1 MB, free: 24.47 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.089e-05/0.1989, allocations: 161.7 kB / 410.3 MB, free: 24.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1989, allocations: 0 / 410.3 MB, free: 24.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.1989, allocations: 0 / 410.3 MB, free: 24.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.1989, allocations: 0 / 410.3 MB, free: 24.26 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.775e-06/0.1989, allocations: 7.938 kB / 410.3 MB, free: 24.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.61e-07/0.1989, allocations: 0 / 410.3 MB, free: 24.25 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1989, allocations: 0 / 410.3 MB, free: 24.25 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002528/0.1992, allocations: 0.7936 MB / 411.1 MB, free: 23.39 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.414e-05/0.1992, allocations: 77.11 kB / 411.1 MB, free: 23.3 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.386e-05/0.1992, allocations: 4 kB / 411.1 MB, free: 23.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.153e-05/0.1992, allocations: 0 / 411.1 MB, free: 23.3 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.448e-05/0.1993, allocations: 4 kB / 411.1 MB, free: 23.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.408e-06/0.1993, allocations: 0 / 411.1 MB, free: 23.29 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.507e-05/0.1993, allocations: 91.27 kB / 411.2 MB, free: 23.2 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1993, allocations: 4.031 kB / 411.2 MB, free: 23.2 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002862/0.1996, allocations: 12 kB / 411.2 MB, free: 23.19 MB / 298.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 (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.0002081/0.1998, allocations: 136.4 kB / 411.4 MB, free: 23.06 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001056/0.1999, allocations: 119.4 kB / 411.5 MB, free: 22.93 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.1999, allocations: 4 kB / 411.5 MB, free: 22.93 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.112e-05/0.2, allocations: 103.4 kB / 411.6 MB, free: 22.81 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000153/0.2001, allocations: 7.938 kB / 411.6 MB, free: 22.8 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002246/0.2004, allocations: 253.3 kB / 411.9 MB, free: 22.52 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.889e-05/0.2005, allocations: 0.6809 MB / 412.5 MB, free: 21.81 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.528e-06/0.2005, allocations: 0 / 412.5 MB, free: 21.81 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.48e-06/0.2005, allocations: 7.438 kB / 412.5 MB, free: 21.8 MB / 298.7 MB Notification: Performance of SimCode: time 3.71e-07/0.2005, allocations: 64 / 412.5 MB, free: 21.8 MB / 298.7 MB Notification: Performance of Templates: time 0.002108/0.2026, allocations: 0.6754 MB / 413.2 MB, free: 21.13 MB / 298.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@2/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