Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001395/0.001395, allocations: 200.3 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.297/1.297, allocations: 229.5 MB / 247.7 MB, free: 6.34 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009844/0.0009845, allocations: 94.66 kB / 299.9 MB, free: 5.355 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002156/0.0002157, allocations: 4 kB / 360.6 MB, free: 8.504 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1812/0.1814, allocations: 51.42 MB / 412 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.000437/0.1819, allocations: 204 kB / 412.2 MB, free: 25.72 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002277/0.1822, allocations: 144.9 kB / 412.4 MB, free: 25.56 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.47e-05/0.1822, allocations: 0 / 412.4 MB, free: 25.56 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.082e-05/0.1822, allocations: 0 / 412.4 MB, free: 25.56 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.528e-05/0.1823, allocations: 15.97 kB / 412.4 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001094/0.1824, allocations: 15.98 kB / 412.4 MB, free: 25.53 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.854e-05/0.1824, allocations: 23.91 kB / 412.4 MB, free: 25.51 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.646e-05/0.1825, allocations: 1.156 kB / 412.4 MB, free: 25.51 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.21e-05/0.1825, allocations: 15.98 kB / 412.5 MB, free: 25.49 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.088e-05/0.1826, allocations: 19.92 kB / 412.5 MB, free: 25.47 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.129e-05/0.1826, allocations: 5.234 kB / 412.5 MB, free: 25.47 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.97e-05/0.1826, allocations: 8 kB / 412.5 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.505e-05/0.1827, allocations: 3.984 kB / 412.5 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.899e-05/0.1827, allocations: 34.39 kB / 412.5 MB, free: 25.42 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.186e-05/0.1828, allocations: 31.91 kB / 412.6 MB, free: 25.39 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.1828, allocations: 1.219 kB / 412.6 MB, free: 25.39 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1828, allocations: 0 / 412.6 MB, free: 25.39 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.156e-06/0.1828, allocations: 0 / 412.6 MB, free: 25.39 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.0001971/0.183, allocations: 357 kB / 412.9 MB, free: 24.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.845e-05/0.183, allocations: 12.03 kB / 412.9 MB, free: 24.97 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.593e-05/0.1831, allocations: 0.9375 kB / 412.9 MB, free: 24.97 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.122e-05/0.1831, allocations: 169.8 kB / 413.1 MB, free: 24.77 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.1832, allocations: 384 / 413.1 MB, free: 24.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.534e-06/0.1832, allocations: 384 / 413.1 MB, free: 24.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.245e-05/0.1833, allocations: 66.17 kB / 413.1 MB, free: 24.7 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.811e-06/0.1833, allocations: 192 / 413.1 MB, free: 24.7 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.105e-06/0.1833, allocations: 3.938 kB / 413.2 MB, free: 24.7 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.1833, allocations: 9.406 kB / 413.2 MB, free: 24.69 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.962e-05/0.1833, allocations: 31.98 kB / 413.2 MB, free: 24.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001009/0.1834, allocations: 157.7 kB / 413.3 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.456e-05/0.1835, allocations: 49.59 kB / 413.4 MB, free: 24.4 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.813e-05/0.1835, allocations: 36.92 kB / 413.4 MB, free: 24.36 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.232e-06/0.1835, allocations: 0 / 413.4 MB, free: 24.36 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.343e-05/0.1836, allocations: 60.2 kB / 413.5 MB, free: 24.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 7.71e-07/0.1836, allocations: 4 kB / 413.5 MB, free: 24.28 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001982/0.1838, allocations: 187.3 kB / 413.7 MB, free: 24.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.206e-05/0.1838, allocations: 77.11 kB / 413.8 MB, free: 23.99 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.59e-05/0.1839, allocations: 117.8 kB / 413.9 MB, free: 23.87 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.783e-06/0.1839, allocations: 25.7 kB / 413.9 MB, free: 23.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.717e-05/0.1839, allocations: 92.12 kB / 414 MB, free: 23.74 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.171e-05/0.1839, allocations: 0 / 414 MB, free: 23.74 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.876e-06/0.1839, allocations: 0 / 414 MB, free: 23.74 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.777e-05/0.184, allocations: 318.8 kB / 414.3 MB, free: 23.42 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.341e-05/0.184, allocations: 27.92 kB / 414.3 MB, free: 23.39 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.984e-05/0.184, allocations: 27.98 kB / 414.3 MB, free: 23.37 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.83e-05/0.1841, allocations: 124.2 kB / 414.5 MB, free: 23.23 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.1841, allocations: 0 / 414.5 MB, free: 23.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001056/0.1842, allocations: 155.3 kB / 414.6 MB, free: 23.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.1842, allocations: 33.7 kB / 414.7 MB, free: 23.03 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.1842, allocations: 3.938 kB / 414.7 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.528e-06/0.1843, allocations: 0 / 414.7 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.192e-06/0.1843, allocations: 3.984 kB / 414.7 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.058e-06/0.1843, allocations: 0 / 414.7 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.716e-05/0.1843, allocations: 4 kB / 414.7 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.483e-06/0.1843, allocations: 0 / 414.7 MB, free: 23.02 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 (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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.136e-05/0.1844, allocations: 155.5 kB / 414.8 MB, free: 22.85 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.987e-06/0.1844, allocations: 4 kB / 414.8 MB, free: 22.84 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.929e-06/0.1844, allocations: 7.844 kB / 414.8 MB, free: 22.82 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-06/0.1844, allocations: 0 / 414.8 MB, free: 22.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.1844, allocations: 4 kB / 414.8 MB, free: 22.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.582e-06/0.1844, allocations: 3.938 kB / 414.8 MB, free: 22.82 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.852e-05/0.1845, allocations: 157.6 kB / 415 MB, free: 22.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.1845, allocations: 0 / 415 MB, free: 22.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1845, allocations: 7.938 kB / 415 MB, free: 22.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1845, allocations: 3.984 kB / 415 MB, free: 22.6 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-06/0.1845, allocations: 7.938 kB / 415 MB, free: 22.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.1845, allocations: 0 / 415 MB, free: 22.59 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.1845, allocations: 0 / 415 MB, free: 22.59 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001285/0.1846, allocations: 190.8 kB / 415.2 MB, free: 22.38 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.762e-05/0.1847, allocations: 81.09 kB / 415.3 MB, free: 22.29 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.525e-05/0.1847, allocations: 4.188 kB / 415.3 MB, free: 22.28 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.232e-05/0.1847, allocations: 8 kB / 415.3 MB, free: 22.27 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.658e-06/0.1847, allocations: 0 / 415.3 MB, free: 22.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.959e-06/0.1847, allocations: 8.031 kB / 415.3 MB, free: 22.27 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.373e-05/0.1848, allocations: 91.27 kB / 415.4 MB, free: 22.18 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1848, allocations: 0 / 415.4 MB, free: 22.18 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000181/0.185, allocations: 8 kB / 415.4 MB, free: 22.17 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.0001972/0.1852, allocations: 149.9 kB / 415.5 MB, free: 22.03 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001026/0.1853, allocations: 135.4 kB / 415.7 MB, free: 21.88 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1853, allocations: 0 / 415.7 MB, free: 21.88 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.014e-05/0.1853, allocations: 91.39 kB / 415.8 MB, free: 21.78 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001174/0.1854, allocations: 8 kB / 415.8 MB, free: 21.77 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000163/0.1856, allocations: 146.6 kB / 415.9 MB, free: 21.6 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.175e-05/0.1857, allocations: 0.6809 MB / 416.6 MB, free: 20.89 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.288e-06/0.1857, allocations: 8.062 kB / 416.6 MB, free: 20.89 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.691e-06/0.1857, allocations: 7.438 kB / 416.6 MB, free: 20.88 MB / 298.7 MB Notification: Performance of SimCode: time 7.22e-07/0.1857, allocations: 0 / 416.6 MB, free: 20.88 MB / 298.7 MB Notification: Performance of Templates: time 0.002032/0.1878, allocations: 0.6409 MB / 417.2 MB, free: 20.24 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/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