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.001651/0.001651, allocations: 175.1 kB / 16.72 MB, free: 5.055 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.487/1.487, allocations: 205.4 MB / 222.9 MB, free: 8.945 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.0007093/0.0007099, allocations: 94.34 kB / 271.2 MB, free: 8.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003236/0.0003237, allocations: 12 kB / 327.5 MB, free: 15.9 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2367/0.237, allocations: 47.57 MB / 375.1 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.000756/0.2378, allocations: 212.4 kB / 375.3 MB, free: 45.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002901/0.2381, allocations: 59.45 kB / 375.3 MB, free: 45.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.396e-05/0.2382, allocations: 0 / 375.3 MB, free: 45.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.331e-05/0.2382, allocations: 0 / 375.3 MB, free: 45.21 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.793e-05/0.2383, allocations: 15.64 kB / 375.3 MB, free: 45.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002036/0.2386, allocations: 18.86 kB / 375.4 MB, free: 45.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.183e-05/0.2386, allocations: 21.55 kB / 375.4 MB, free: 45.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.24e-05/0.2387, allocations: 5.359 kB / 375.4 MB, free: 45.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.329e-05/0.2388, allocations: 6.875 kB / 375.4 MB, free: 45.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.475e-05/0.2389, allocations: 22.91 kB / 375.4 MB, free: 45.17 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.512e-05/0.2389, allocations: 1.375 kB / 375.4 MB, free: 45.17 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.534e-05/0.2389, allocations: 20.05 kB / 375.4 MB, free: 45.15 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.521e-05/0.239, allocations: 4.125 kB / 375.4 MB, free: 45.15 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.676e-05/0.2391, allocations: 32.39 kB / 375.5 MB, free: 45.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.383e-05/0.2392, allocations: 16.22 kB / 375.5 MB, free: 45.11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.847e-06/0.2392, allocations: 1.375 kB / 375.5 MB, free: 45.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.056e-06/0.2392, allocations: 0 / 375.5 MB, free: 45.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.592e-06/0.2392, allocations: 0 / 375.5 MB, free: 45.11 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.000372/0.2396, allocations: 357.4 kB / 375.8 MB, free: 44.71 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.466e-05/0.2396, allocations: 8.25 kB / 375.9 MB, free: 44.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.307e-05/0.2397, allocations: 7.672 kB / 375.9 MB, free: 44.71 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.462e-05/0.2398, allocations: 182.5 kB / 376 MB, free: 44.49 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.548e-05/0.2398, allocations: 1.75 kB / 376 MB, free: 44.49 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.188e-05/0.2398, allocations: 1.75 kB / 376 MB, free: 44.49 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001271/0.24, allocations: 60.38 kB / 376.1 MB, free: 44.45 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.24, allocations: 192 / 376.1 MB, free: 44.45 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.24, allocations: 5.312 kB / 376.1 MB, free: 44.45 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.24, allocations: 0 / 376.1 MB, free: 44.45 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.001e-05/0.24, allocations: 25.98 kB / 376.1 MB, free: 44.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001174/0.2402, allocations: 155.2 kB / 376.3 MB, free: 44.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.26e-05/0.2402, allocations: 55.92 kB / 376.3 MB, free: 44.21 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.04e-05/0.2403, allocations: 32.27 kB / 376.4 MB, free: 44.2 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.157e-06/0.2403, allocations: 1.375 kB / 376.4 MB, free: 44.2 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.501e-05/0.2403, allocations: 61.64 kB / 376.4 MB, free: 44.12 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.182e-06/0.2404, allocations: 0 / 376.4 MB, free: 44.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003118/0.2407, allocations: 179.9 kB / 376.6 MB, free: 44.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.68e-05/0.2407, allocations: 87.53 kB / 376.7 MB, free: 43.94 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.418e-05/0.2408, allocations: 118 kB / 376.8 MB, free: 43.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.144e-05/0.2408, allocations: 26.92 kB / 376.8 MB, free: 43.79 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.673e-05/0.2408, allocations: 85.17 kB / 376.9 MB, free: 43.71 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.277e-05/0.2409, allocations: 10.09 kB / 376.9 MB, free: 43.7 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.617e-06/0.2409, allocations: 0 / 376.9 MB, free: 43.7 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.996e-05/0.2409, allocations: 312.9 kB / 377.2 MB, free: 43.39 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.453e-05/0.241, allocations: 26.05 kB / 377.3 MB, free: 43.38 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.143e-05/0.241, allocations: 25.61 kB / 377.3 MB, free: 43.38 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.921e-05/0.2411, allocations: 128.3 kB / 377.4 MB, free: 43.29 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.2411, allocations: 0 / 377.4 MB, free: 43.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001501/0.2413, allocations: 151.7 kB / 377.6 MB, free: 43.2 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.111e-05/0.2413, allocations: 40.22 kB / 377.6 MB, free: 43.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.2413, allocations: 5.031 kB / 377.6 MB, free: 43.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.2414, allocations: 0 / 377.6 MB, free: 43.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.305e-06/0.2414, allocations: 1.219 kB / 377.6 MB, free: 43.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.2414, allocations: 7.922 kB / 377.6 MB, free: 43.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.097e-05/0.2414, allocations: 5.125 kB / 377.6 MB, free: 43.15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.2414, allocations: 2.188 kB / 377.6 MB, free: 43.15 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 7.438e-05/0.2415, allocations: 148.7 kB / 377.8 MB, free: 43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.899e-06/0.2415, allocations: 2.219 kB / 377.8 MB, free: 43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.474e-05/0.2415, allocations: 10.03 kB / 377.8 MB, free: 42.99 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.2416, allocations: 0 / 377.8 MB, free: 42.99 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.2416, allocations: 1.281 kB / 377.8 MB, free: 42.99 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.2416, allocations: 192 / 377.8 MB, free: 42.99 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.901e-05/0.2416, allocations: 164.2 kB / 377.9 MB, free: 42.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2416, allocations: 3.984 kB / 377.9 MB, free: 42.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.51e-07/0.2417, allocations: 1.156 kB / 377.9 MB, free: 42.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.2417, allocations: 0 / 377.9 MB, free: 42.78 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.2417, allocations: 10.19 kB / 378 MB, free: 42.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.2417, allocations: 1.031 kB / 378 MB, free: 42.77 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.2417, allocations: 0 / 378 MB, free: 42.77 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002205/0.2419, allocations: 191.2 kB / 378.1 MB, free: 42.65 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.926e-05/0.2419, allocations: 78.3 kB / 378.2 MB, free: 42.56 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.802e-05/0.242, allocations: 6.25 kB / 378.2 MB, free: 42.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.387e-05/0.242, allocations: 5.031 kB / 378.2 MB, free: 42.55 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.766e-05/0.242, allocations: 1 kB / 378.2 MB, free: 42.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.093e-06/0.242, allocations: 10.34 kB / 378.2 MB, free: 42.54 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.068e-05/0.2421, allocations: 88.42 kB / 378.3 MB, free: 42.46 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2421, allocations: 0 / 378.3 MB, free: 42.46 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001812/0.2422, allocations: 9.125 kB / 378.3 MB, free: 42.46 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.0002418/0.2425, allocations: 134.8 kB / 378.5 MB, free: 42.36 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001348/0.2426, allocations: 127.7 kB / 378.6 MB, free: 42.27 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2427, allocations: 0 / 378.6 MB, free: 42.27 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.575e-05/0.2427, allocations: 98.52 kB / 378.7 MB, free: 42.2 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001348/0.2429, allocations: 7.344 kB / 378.7 MB, free: 42.19 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000221/0.2431, allocations: 172.4 kB / 378.9 MB, free: 42.03 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001053/0.2432, allocations: 0.6807 MB / 379.5 MB, free: 41.33 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.484e-06/0.2432, allocations: 11.5 kB / 379.6 MB, free: 41.32 MB / 298.7 MB Notification: Performance of SimCode: time 3.21e-07/0.2432, allocations: 5.5 kB / 379.6 MB, free: 41.32 MB / 298.7 MB Notification: Performance of Templates: time 0.001851/0.2451, allocations: 0.6592 MB / 380.2 MB, free: 41 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