Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001225/0.001225, allocations: 178.8 kB / 16.41 MB, free: 5.578 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.424/1.424, allocations: 205.4 MB / 222.5 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007628/0.0007628, allocations: 94.3 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002893/0.0002895, allocations: 8 kB / 327 MB, free: 224 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2013/0.2016, allocations: 47.57 MB / 374.5 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0004481/0.2021, allocations: 209.4 kB / 374.7 MB, free: 45.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001682/0.2022, allocations: 51.59 kB / 374.8 MB, free: 45.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.753e-05/0.2023, allocations: 1.375 kB / 374.8 MB, free: 45.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.522e-05/0.2023, allocations: 4 kB / 374.8 MB, free: 45.22 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.712e-05/0.2024, allocations: 21.48 kB / 374.8 MB, free: 45.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 9.877e-05/0.2025, allocations: 12.75 kB / 374.8 MB, free: 45.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.763e-05/0.2025, allocations: 23.03 kB / 374.9 MB, free: 45.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.439e-05/0.2026, allocations: 2.094 kB / 374.9 MB, free: 45.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.969e-05/0.2026, allocations: 6.438 kB / 374.9 MB, free: 45.2 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.425e-05/0.2026, allocations: 27.39 kB / 374.9 MB, free: 45.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.166e-05/0.2027, allocations: 4.906 kB / 374.9 MB, free: 45.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.813e-05/0.2027, allocations: 4.281 kB / 374.9 MB, free: 45.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.675e-05/0.2027, allocations: 3.156 kB / 374.9 MB, free: 45.18 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.987e-05/0.2028, allocations: 31.73 kB / 374.9 MB, free: 45.14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.587e-05/0.2028, allocations: 21.08 kB / 375 MB, free: 45.13 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.2028, allocations: 0.9688 kB / 375 MB, free: 45.13 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2028, allocations: 3.938 kB / 375 MB, free: 45.13 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.817e-06/0.2029, allocations: 0 / 375 MB, free: 45.13 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.0002432/0.2031, allocations: 349.3 kB / 375.3 MB, free: 44.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.2031, allocations: 9.344 kB / 375.3 MB, free: 44.74 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.056e-05/0.2032, allocations: 1.5 kB / 375.3 MB, free: 44.74 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.002e-05/0.2033, allocations: 178.1 kB / 375.5 MB, free: 44.53 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.26e-05/0.2033, allocations: 1.125 kB / 375.5 MB, free: 44.53 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.917e-06/0.2033, allocations: 6.125 kB / 375.5 MB, free: 44.53 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001004/0.2034, allocations: 58.23 kB / 375.6 MB, free: 44.49 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.2034, allocations: 0 / 375.6 MB, free: 44.49 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.305e-06/0.2034, allocations: 1.156 kB / 375.6 MB, free: 44.49 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.938e-06/0.2034, allocations: 0 / 375.6 MB, free: 44.49 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.752e-05/0.2035, allocations: 31.36 kB / 375.6 MB, free: 44.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.761e-05/0.2036, allocations: 158.2 kB / 375.7 MB, free: 44.28 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.527e-05/0.2036, allocations: 56.95 kB / 375.8 MB, free: 44.24 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.395e-05/0.2037, allocations: 35.92 kB / 375.8 MB, free: 44.23 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.028e-06/0.2037, allocations: 0 / 375.8 MB, free: 44.23 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.606e-05/0.2037, allocations: 62.97 kB / 375.9 MB, free: 44.15 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 8.12e-07/0.2037, allocations: 0 / 375.9 MB, free: 44.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002385/0.204, allocations: 191.8 kB / 376.1 MB, free: 44.05 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.052e-05/0.204, allocations: 78.48 kB / 376.2 MB, free: 43.96 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.038e-05/0.2041, allocations: 110.2 kB / 376.3 MB, free: 43.86 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.316e-06/0.2041, allocations: 31.11 kB / 376.3 MB, free: 43.82 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.206e-05/0.2041, allocations: 85.52 kB / 376.4 MB, free: 43.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.936e-05/0.2041, allocations: 6.656 kB / 376.4 MB, free: 43.73 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.936e-06/0.2042, allocations: 0 / 376.4 MB, free: 43.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.659e-05/0.2042, allocations: 312.2 kB / 376.7 MB, free: 43.42 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.126e-05/0.2042, allocations: 29.98 kB / 376.7 MB, free: 43.41 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.704e-05/0.2043, allocations: 29.92 kB / 376.7 MB, free: 43.4 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.799e-05/0.2043, allocations: 54.09 kB / 376.8 MB, free: 43.37 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2043, allocations: 0 / 376.8 MB, free: 43.37 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001509/0.2045, allocations: 164 kB / 377 MB, free: 43.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.765e-05/0.2045, allocations: 40.53 kB / 377 MB, free: 43.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.2045, allocations: 3.953 kB / 377 MB, free: 43.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.308e-06/0.2046, allocations: 0 / 377 MB, free: 43.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.734e-06/0.2046, allocations: 1.188 kB / 377 MB, free: 43.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.509e-06/0.2046, allocations: 0 / 377 MB, free: 43.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.873e-05/0.2046, allocations: 1.219 kB / 377 MB, free: 43.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.635e-06/0.2046, allocations: 2.406 kB / 377 MB, free: 43.23 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.139e-05/0.2047, allocations: 148.3 kB / 377.2 MB, free: 43.08 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.03e-05/0.2047, allocations: 6.281 kB / 377.2 MB, free: 43.07 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.162e-05/0.2047, allocations: 5.938 kB / 377.2 MB, free: 43.07 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.2047, allocations: 5.078 kB / 377.2 MB, free: 43.07 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.2047, allocations: 0 / 377.2 MB, free: 43.07 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.053e-06/0.2047, allocations: 0 / 377.2 MB, free: 43.07 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.187e-05/0.2048, allocations: 160.9 kB / 377.3 MB, free: 42.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.2048, allocations: 0 / 377.3 MB, free: 42.87 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-06/0.2048, allocations: 1.156 kB / 377.3 MB, free: 42.87 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.2048, allocations: 0 / 377.3 MB, free: 42.87 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.2048, allocations: 2.062 kB / 377.3 MB, free: 42.87 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.2048, allocations: 1.156 kB / 377.3 MB, free: 42.87 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.2048, allocations: 7.953 kB / 377.3 MB, free: 42.86 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001736/0.205, allocations: 198.9 kB / 377.5 MB, free: 42.73 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.524e-05/0.205, allocations: 78.36 kB / 377.6 MB, free: 42.64 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.542e-05/0.2051, allocations: 2.375 kB / 377.6 MB, free: 42.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.416e-05/0.2051, allocations: 2.062 kB / 377.6 MB, free: 42.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.22e-05/0.2051, allocations: 11.89 kB / 377.6 MB, free: 42.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.011e-06/0.2051, allocations: 3.281 kB / 377.6 MB, free: 42.62 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.234e-05/0.2052, allocations: 95.7 kB / 377.7 MB, free: 42.54 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2052, allocations: 0 / 377.7 MB, free: 42.54 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001892/0.2054, allocations: 12.78 kB / 377.7 MB, free: 42.54 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 (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.0002096/0.2056, allocations: 118.2 kB / 377.8 MB, free: 42.45 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001307/0.2057, allocations: 126.2 kB / 378 MB, free: 42.36 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2057, allocations: 4 kB / 378 MB, free: 42.36 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.364e-05/0.2058, allocations: 102.5 kB / 378.1 MB, free: 42.28 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001258/0.2059, allocations: 7.781 kB / 378.1 MB, free: 42.27 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002039/0.2061, allocations: 172.5 kB / 378.3 MB, free: 42.11 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.59e-05/0.2062, allocations: 0.6802 MB / 378.9 MB, free: 41.41 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.431e-06/0.2062, allocations: 8.406 kB / 378.9 MB, free: 41.41 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2062, allocations: 0 / 378.9 MB, free: 41.41 MB / 298.7 MB Notification: Performance of Templates: time 0.00176/0.208, allocations: 0.6731 MB / 379.6 MB, free: 41.08 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","../files/Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches