Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 103.9 kB / 18.39 MB, free: 4.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001571/0.001571, allocations: 186.4 kB / 19.33 MB, free: 3.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.577/1.577, allocations: 205.1 MB / 225.2 MB, free: 12.2 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 47.92 kB / 329.2 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08752/0.08883, allocations: 46.62 MB / 375.8 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001685/0.09055, allocations: 490.5 kB / 376.3 MB, free: 4.121 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002866/0.09086, allocations: 59.78 kB / 376.3 MB, free: 4.062 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.273e-05/0.09091, allocations: 0 / 376.3 MB, free: 4.062 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.186e-05/0.09097, allocations: 3.984 kB / 376.3 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.008e-05/0.09104, allocations: 11.98 kB / 376.3 MB, free: 4.047 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001714/0.09122, allocations: 23.92 kB / 376.4 MB, free: 4.023 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001043/0.09133, allocations: 27.95 kB / 376.4 MB, free: 3.996 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.217e-05/0.09139, allocations: 7.938 kB / 376.4 MB, free: 3.988 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.146e-05/0.09142, allocations: 8 kB / 376.4 MB, free: 3.98 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.001e-05/0.0915, allocations: 23.97 kB / 376.4 MB, free: 3.957 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.66e-05/0.09152, allocations: 0 / 376.4 MB, free: 3.957 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.613e-05/0.09157, allocations: 7.984 kB / 376.4 MB, free: 3.949 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.961e-05/0.09163, allocations: 11.94 kB / 376.4 MB, free: 3.938 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.802e-05/0.09167, allocations: 7.938 kB / 376.5 MB, free: 3.93 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00011/0.09179, allocations: 23.91 kB / 376.5 MB, free: 3.906 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.0918, allocations: 3.938 kB / 376.5 MB, free: 3.902 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.09181, allocations: 0 / 376.5 MB, free: 3.902 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.561e-06/0.09182, allocations: 4 kB / 376.5 MB, free: 3.898 MB / 318.1 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.0003469/0.09217, allocations: 369.1 kB / 376.8 MB, free: 3.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.09222, allocations: 12.03 kB / 376.9 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.446e-05/0.09226, allocations: 0.9375 kB / 376.9 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001112/0.09237, allocations: 168.3 kB / 377 MB, free: 3.266 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.287e-05/0.09239, allocations: 4.375 kB / 377 MB, free: 3.262 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.01e-05/0.09241, allocations: 384 / 377 MB, free: 3.262 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000116/0.09253, allocations: 66.23 kB / 377.1 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.09254, allocations: 192 / 377.1 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.09256, allocations: 7.938 kB / 377.1 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.09257, allocations: 0 / 377.1 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.593e-05/0.09262, allocations: 31.86 kB / 377.1 MB, free: 3.152 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000143/0.09277, allocations: 157.7 kB / 377.3 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.331e-05/0.09285, allocations: 46.56 kB / 377.3 MB, free: 2.895 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.06e-05/0.0929, allocations: 36.92 kB / 377.4 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.603e-06/0.09291, allocations: 0 / 377.4 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.003e-05/0.09296, allocations: 60.27 kB / 377.4 MB, free: 2.781 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.082e-06/0.09296, allocations: 0 / 377.4 MB, free: 2.781 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002699/0.09324, allocations: 191.2 kB / 377.6 MB, free: 2.582 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.446e-05/0.09329, allocations: 77.11 kB / 377.7 MB, free: 2.488 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.058e-05/0.09339, allocations: 113.8 kB / 377.8 MB, free: 2.367 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.398e-05/0.09341, allocations: 25.7 kB / 377.8 MB, free: 2.336 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.562e-05/0.09345, allocations: 88.14 kB / 377.9 MB, free: 2.246 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.09348, allocations: 3.906 kB / 377.9 MB, free: 2.242 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.671e-05/0.09352, allocations: 25.73 kB / 377.9 MB, free: 2.211 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.09363, allocations: 314.8 kB / 378.2 MB, free: 1.895 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.49e-05/0.09367, allocations: 31.92 kB / 378.3 MB, free: 1.863 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.605e-05/0.0937, allocations: 23.98 kB / 378.3 MB, free: 1.84 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.318e-05/0.0938, allocations: 120.2 kB / 378.4 MB, free: 1.707 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.09381, allocations: 0 / 378.4 MB, free: 1.707 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001492/0.09396, allocations: 151.3 kB / 378.6 MB, free: 1.547 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.31e-05/0.094, allocations: 33.7 kB / 378.6 MB, free: 1.508 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.09402, allocations: 3.938 kB / 378.6 MB, free: 1.504 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.09404, allocations: 8.047 kB / 378.6 MB, free: 1.496 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.81e-07/0.09404, allocations: 0 / 378.6 MB, free: 1.496 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.09405, allocations: 4 kB / 378.6 MB, free: 1.492 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.864e-05/0.09408, allocations: 0 / 378.6 MB, free: 1.492 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.313e-06/0.09409, allocations: 256 / 378.6 MB, free: 1.492 MB / 318.1 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 0.0001012/0.0942, allocations: 155.5 kB / 378.8 MB, free: 1.324 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.24e-05/0.09421, allocations: 0 / 378.8 MB, free: 1.324 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.683e-05/0.09423, allocations: 11.84 kB / 378.8 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.09424, allocations: 192 / 378.8 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.09425, allocations: 0 / 378.8 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.09426, allocations: 7.984 kB / 378.8 MB, free: 1.301 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001021/0.09437, allocations: 165.5 kB / 378.9 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.09438, allocations: 0 / 378.9 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.414e-06/0.09438, allocations: 3.984 kB / 379 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.09439, allocations: 0 / 379 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.043e-05/0.0944, allocations: 7.938 kB / 379 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.09441, allocations: 0 / 379 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.09441, allocations: 0 / 379 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001906/0.09461, allocations: 198.7 kB / 379.2 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.851e-05/0.09466, allocations: 77.11 kB / 379.2 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.927e-05/0.09468, allocations: 11.88 kB / 379.2 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.304e-05/0.0947, allocations: 0 / 379.2 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.212e-05/0.09472, allocations: 4 kB / 379.2 MB, free: 0.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-06/0.09473, allocations: 0 / 379.2 MB, free: 0.75 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.202e-05/0.09477, allocations: 91.27 kB / 379.3 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.09478, allocations: 0 / 379.3 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000194/0.09498, allocations: 12 kB / 379.3 MB, free: 0.6484 MB / 318.1 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.000257/0.09524, allocations: 142.5 kB / 379.5 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001472/0.0954, allocations: 135.3 kB / 379.6 MB, free: 368 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.09541, allocations: 0 / 379.6 MB, free: 368 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.661e-05/0.09548, allocations: 95.33 kB / 379.7 MB, free: 260 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000136/0.09562, allocations: 4 kB / 379.7 MB, free: 256 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002703/0.0959, allocations: 174.6 kB / 379.9 MB, free: 48 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1677/0.2636, allocations: 0.6788 MB / 380.6 MB, free: 12.98 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.542e-05/0.2637, allocations: 7.438 kB / 380.6 MB, free: 12.98 MB / 318.1 MB Notification: Performance of SimCode: time 8.32e-07/0.2637, allocations: 0 / 380.6 MB, free: 12.98 MB / 318.1 MB Notification: Performance of Templates: time 0.002156/0.2658, allocations: 0.6726 MB / 381.2 MB, free: 12.97 MB / 318.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches