Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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_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_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001357/0.001357, allocations: 174.6 kB / 17.36 MB, free: 4.445 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.475/1.475, allocations: 205.6 MB / 223.7 MB, free: 8.926 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008198/0.0008196, allocations: 90.42 kB / 272.1 MB, free: 8.121 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002609/0.0002609, allocations: 4 kB / 329 MB, free: 15.07 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2361/0.2363, allocations: 47.58 MB / 376.6 MB, free: 45.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0005878/0.237, allocations: 215.5 kB / 376.8 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000272/0.2372, allocations: 139 kB / 376.9 MB, free: 45.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.059e-05/0.2373, allocations: 0 / 376.9 MB, free: 45.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.745e-05/0.2373, allocations: 1.344 kB / 376.9 MB, free: 45.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.987e-05/0.2374, allocations: 14.91 kB / 376.9 MB, free: 45.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001425/0.2375, allocations: 24.05 kB / 377 MB, free: 45.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.558e-05/0.2376, allocations: 18.92 kB / 377 MB, free: 45.26 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.565e-05/0.2377, allocations: 8.953 kB / 377 MB, free: 45.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.968e-05/0.2377, allocations: 11.36 kB / 377 MB, free: 45.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.747e-05/0.2378, allocations: 18.55 kB / 377 MB, free: 45.25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.146e-05/0.2378, allocations: 0 / 377 MB, free: 45.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.88e-05/0.2378, allocations: 13.31 kB / 377 MB, free: 45.24 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.696e-05/0.2379, allocations: 14.97 kB / 377.1 MB, free: 45.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.906e-05/0.2379, allocations: 32.7 kB / 377.1 MB, free: 45.19 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.474e-05/0.238, allocations: 23.55 kB / 377.1 MB, free: 45.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.238, allocations: 4 kB / 377.1 MB, free: 45.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.238, allocations: 1.188 kB / 377.1 MB, free: 45.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.376e-06/0.2381, allocations: 0 / 377.1 MB, free: 45.18 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.0002485/0.2383, allocations: 357.1 kB / 377.5 MB, free: 44.78 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.2384, allocations: 8.781 kB / 377.5 MB, free: 44.78 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.226e-05/0.2384, allocations: 6.875 kB / 377.5 MB, free: 44.78 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.171e-05/0.2385, allocations: 178.6 kB / 377.6 MB, free: 44.57 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.2385, allocations: 1.656 kB / 377.7 MB, free: 44.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.939e-06/0.2385, allocations: 1.344 kB / 377.7 MB, free: 44.57 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001252/0.2387, allocations: 68.09 kB / 377.7 MB, free: 44.52 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.2387, allocations: 192 / 377.7 MB, free: 44.52 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.047e-05/0.2387, allocations: 5.094 kB / 377.7 MB, free: 44.52 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.2387, allocations: 0 / 377.7 MB, free: 44.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.262e-05/0.2388, allocations: 26.77 kB / 377.8 MB, free: 44.51 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001246/0.2389, allocations: 154 kB / 377.9 MB, free: 44.32 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.358e-05/0.239, allocations: 55.34 kB / 378 MB, free: 44.28 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.146e-05/0.239, allocations: 35.58 kB / 378 MB, free: 44.26 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.08e-06/0.239, allocations: 1.406 kB / 378 MB, free: 44.26 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.36e-05/0.2391, allocations: 57.27 kB / 378 MB, free: 44.19 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.062e-06/0.2391, allocations: 1.406 kB / 378 MB, free: 44.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003015/0.2394, allocations: 183 kB / 378.2 MB, free: 44.1 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.544e-05/0.2395, allocations: 83.73 kB / 378.3 MB, free: 44 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.103e-05/0.2395, allocations: 109.8 kB / 378.4 MB, free: 43.9 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.707e-06/0.2396, allocations: 27.05 kB / 378.4 MB, free: 43.87 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.594e-05/0.2396, allocations: 89.31 kB / 378.5 MB, free: 43.78 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.735e-05/0.2396, allocations: 9.031 kB / 378.5 MB, free: 43.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.327e-06/0.2396, allocations: 1.125 kB / 378.5 MB, free: 43.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.118e-05/0.2397, allocations: 313.2 kB / 378.8 MB, free: 43.46 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.604e-05/0.2397, allocations: 28.83 kB / 378.9 MB, free: 43.45 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.404e-05/0.2398, allocations: 29.7 kB / 378.9 MB, free: 43.44 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.949e-05/0.2399, allocations: 121.5 kB / 379 MB, free: 43.36 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.2399, allocations: 0 / 379 MB, free: 43.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001458/0.24, allocations: 155.6 kB / 379.2 MB, free: 43.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.071e-05/0.2401, allocations: 35.83 kB / 379.2 MB, free: 43.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.2401, allocations: 4.938 kB / 379.2 MB, free: 43.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.2401, allocations: 0 / 379.2 MB, free: 43.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.42e-07/0.2401, allocations: 1.156 kB / 379.2 MB, free: 43.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.2401, allocations: 3.938 kB / 379.2 MB, free: 43.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.948e-05/0.2401, allocations: 5.141 kB / 379.2 MB, free: 43.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.336e-06/0.2401, allocations: 2.25 kB / 379.2 MB, free: 43.22 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 6.111e-05/0.2402, allocations: 148.1 kB / 379.4 MB, free: 43.07 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.106e-05/0.2402, allocations: 11.11 kB / 379.4 MB, free: 43.07 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.363e-05/0.2402, allocations: 9.094 kB / 379.4 MB, free: 43.06 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.2403, allocations: 0.8125 kB / 379.4 MB, free: 43.06 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.2403, allocations: 0 / 379.4 MB, free: 43.06 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.2403, allocations: 0.9375 kB / 379.4 MB, free: 43.06 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.905e-05/0.2403, allocations: 159.7 kB / 379.5 MB, free: 42.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.2403, allocations: 1.062 kB / 379.5 MB, free: 42.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.81e-07/0.2403, allocations: 256 / 379.5 MB, free: 42.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.2404, allocations: 5.219 kB / 379.6 MB, free: 42.86 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.084e-05/0.2404, allocations: 14.11 kB / 379.6 MB, free: 42.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.22e-07/0.2404, allocations: 0 / 379.6 MB, free: 42.84 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2404, allocations: 0 / 379.6 MB, free: 42.84 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001776/0.2406, allocations: 187.7 kB / 379.8 MB, free: 42.73 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.057e-05/0.2406, allocations: 86.34 kB / 379.8 MB, free: 42.62 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.77e-05/0.2406, allocations: 6.094 kB / 379.8 MB, free: 42.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.297e-05/0.2406, allocations: 1.188 kB / 379.8 MB, free: 42.62 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.114e-05/0.2407, allocations: 9.188 kB / 379.9 MB, free: 42.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.741e-06/0.2407, allocations: 2.656 kB / 379.9 MB, free: 42.61 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.071e-05/0.2407, allocations: 90.83 kB / 379.9 MB, free: 42.53 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2407, allocations: 1.656 kB / 379.9 MB, free: 42.53 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001832/0.2409, allocations: 8.344 kB / 380 MB, free: 42.53 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.0002621/0.2412, allocations: 141.1 kB / 380.1 MB, free: 42.43 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001405/0.2413, allocations: 134.9 kB / 380.2 MB, free: 42.34 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2413, allocations: 0 / 380.2 MB, free: 42.34 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.147e-05/0.2414, allocations: 94.86 kB / 380.3 MB, free: 42.26 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000129/0.2415, allocations: 8.031 kB / 380.3 MB, free: 42.26 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002183/0.2418, allocations: 149 kB / 380.5 MB, free: 42.13 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001091/0.2419, allocations: 0.6799 MB / 381.1 MB, free: 41.43 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.29e-06/0.2419, allocations: 4.125 kB / 381.2 MB, free: 41.43 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.452e-06/0.2419, allocations: 11.38 kB / 381.2 MB, free: 41.41 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2419, allocations: 1.344 kB / 381.2 MB, free: 41.41 MB / 298.7 MB Notification: Performance of Templates: time 0.002417/0.2443, allocations: 0.6344 MB / 381.8 MB, free: 41.1 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches