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.001085/0.001085, allocations: 104.7 kB / 17.15 MB, free: 6.305 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.00135/0.00135, allocations: 198 kB / 18.07 MB, free: 5.41 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.458/1.458, allocations: 205.1 MB / 223.9 MB, free: 12.46 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.001345/0.001346, allocations: 51.92 kB / 280 MB, free: 3.602 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09758/0.09894, allocations: 46.63 MB / 326.6 MB, free: 4.906 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.002256/0.1012, allocations: 0.5425 MB / 327.1 MB, free: 4.359 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004239/0.1017, allocations: 55.86 kB / 327.2 MB, free: 4.305 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.37e-05/0.1017, allocations: 0 / 327.2 MB, free: 4.305 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 4.058e-05/0.1018, allocations: 3.938 kB / 327.2 MB, free: 4.301 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 8.353e-05/0.1019, allocations: 13.39 kB / 327.2 MB, free: 4.289 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001986/0.1021, allocations: 27.97 kB / 327.2 MB, free: 4.262 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 6.914e-05/0.1022, allocations: 23.91 kB / 327.3 MB, free: 4.238 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.568e-05/0.1023, allocations: 4 kB / 327.3 MB, free: 4.234 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.938e-05/0.1023, allocations: 11.98 kB / 327.3 MB, free: 4.223 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.772e-05/0.1024, allocations: 19.98 kB / 327.3 MB, free: 4.203 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.04e-05/0.1024, allocations: 0 / 327.3 MB, free: 4.203 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.466e-05/0.1025, allocations: 7.938 kB / 327.3 MB, free: 4.195 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.351e-05/0.1026, allocations: 15.91 kB / 327.3 MB, free: 4.18 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.206e-05/0.1026, allocations: 11.94 kB / 327.3 MB, free: 4.168 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001181/0.1027, allocations: 19.92 kB / 327.3 MB, free: 4.148 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.1027, allocations: 4 kB / 327.3 MB, free: 4.145 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1028, allocations: 0 / 327.3 MB, free: 4.145 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.1028, allocations: 0 / 327.3 MB, free: 4.145 MB / 270.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.0004053/0.1032, allocations: 365.4 kB / 327.7 MB, free: 3.73 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.1032, allocations: 8.031 kB / 327.7 MB, free: 3.723 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.927e-05/0.1033, allocations: 8.844 kB / 327.7 MB, free: 3.715 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001236/0.1034, allocations: 168.3 kB / 327.9 MB, free: 3.512 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.484e-05/0.1034, allocations: 384 / 327.9 MB, free: 3.512 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.875e-05/0.1035, allocations: 4.375 kB / 327.9 MB, free: 3.508 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001486/0.1036, allocations: 66.23 kB / 328 MB, free: 3.438 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.1036, allocations: 192 / 328 MB, free: 3.438 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.335e-05/0.1037, allocations: 3.938 kB / 328 MB, free: 3.434 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.1037, allocations: 4 kB / 328 MB, free: 3.43 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.918e-05/0.1037, allocations: 23.98 kB / 328 MB, free: 3.406 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001726/0.1039, allocations: 153.7 kB / 328.1 MB, free: 3.207 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.292e-05/0.104, allocations: 50.55 kB / 328.2 MB, free: 3.148 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.457e-05/0.104, allocations: 36.92 kB / 328.2 MB, free: 3.109 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.616e-06/0.1041, allocations: 4 kB / 328.2 MB, free: 3.105 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.066e-05/0.1041, allocations: 60.27 kB / 328.3 MB, free: 3.031 MB / 270.1 MB Notification: Performance of pre-optimization done (n=4): time 1.603e-06/0.1041, allocations: 0 / 328.3 MB, free: 3.031 MB / 270.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003177/0.1045, allocations: 191.1 kB / 328.5 MB, free: 2.832 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.921e-05/0.1045, allocations: 81.11 kB / 328.5 MB, free: 2.734 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/0.1046, allocations: 109.8 kB / 328.7 MB, free: 2.617 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.714e-05/0.1047, allocations: 25.7 kB / 328.7 MB, free: 2.586 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.916e-05/0.1047, allocations: 88.06 kB / 328.8 MB, free: 2.496 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.987e-05/0.1047, allocations: 15.94 kB / 328.8 MB, free: 2.48 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.811e-05/0.1048, allocations: 13.72 kB / 328.8 MB, free: 2.461 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.1049, allocations: 322.8 kB / 329.1 MB, free: 2.137 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.251e-05/0.1049, allocations: 20 kB / 329.1 MB, free: 2.117 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.016e-05/0.105, allocations: 27.98 kB / 329.2 MB, free: 2.09 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000101/0.1051, allocations: 116.4 kB / 329.3 MB, free: 1.961 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1051, allocations: 0 / 329.3 MB, free: 1.961 MB / 270.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001628/0.1053, allocations: 159.3 kB / 329.4 MB, free: 1.793 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.636e-05/0.1053, allocations: 41.75 kB / 329.5 MB, free: 1.746 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.1053, allocations: 7.922 kB / 329.5 MB, free: 1.738 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.1053, allocations: 0 / 329.5 MB, free: 1.738 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.182e-06/0.1053, allocations: 256 / 329.5 MB, free: 1.738 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.1054, allocations: 0 / 329.5 MB, free: 1.738 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.539e-05/0.1054, allocations: 11.94 kB / 329.5 MB, free: 1.727 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.706e-06/0.1054, allocations: 0 / 329.5 MB, free: 1.727 MB / 270.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.0001037/0.1055, allocations: 147.5 kB / 329.6 MB, free: 1.566 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.254e-05/0.1055, allocations: 7.906 kB / 329.6 MB, free: 1.559 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.861e-05/0.1056, allocations: 11.84 kB / 329.6 MB, free: 1.543 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.1056, allocations: 0 / 329.6 MB, free: 1.543 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.1056, allocations: 4 kB / 329.7 MB, free: 1.539 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.1056, allocations: 0 / 329.7 MB, free: 1.539 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001069/0.1057, allocations: 161.6 kB / 329.8 MB, free: 1.332 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1057, allocations: 0 / 329.8 MB, free: 1.332 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.42e-07/0.1057, allocations: 4 kB / 329.8 MB, free: 1.328 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.1057, allocations: 0 / 329.8 MB, free: 1.328 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.071e-05/0.1057, allocations: 3.938 kB / 329.8 MB, free: 1.324 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.1057, allocations: 0 / 329.8 MB, free: 1.324 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1057, allocations: 0 / 329.8 MB, free: 1.324 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002047/0.106, allocations: 202.7 kB / 330 MB, free: 1.102 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.063e-05/0.106, allocations: 81.02 kB / 330.1 MB, free: 1.004 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.816e-05/0.106, allocations: 3.938 kB / 330.1 MB, free: 1 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.296e-05/0.1061, allocations: 4 kB / 330.1 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.295e-05/0.1061, allocations: 0 / 330.1 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.332e-06/0.1061, allocations: 4 kB / 330.1 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of sorting global known variables: time 4.977e-05/0.1061, allocations: 91.27 kB / 330.2 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1061, allocations: 3.938 kB / 330.2 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0001927/0.1063, allocations: 12.03 kB / 330.2 MB, free: 0.8867 MB / 270.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.0003021/0.1066, allocations: 134.2 kB / 330.3 MB, free: 0.7539 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0001733/0.1068, allocations: 127.4 kB / 330.5 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.1068, allocations: 3.938 kB / 330.5 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 7.524e-05/0.1069, allocations: 99.33 kB / 330.6 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001458/0.1071, allocations: 12.11 kB / 330.6 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002619/0.1073, allocations: 142.7 kB / 330.7 MB, free: 332 kB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002635/0.1076, allocations: 0.6809 MB / 331.4 MB, free: 15.62 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.313e-06/0.1076, allocations: 0 / 331.4 MB, free: 15.62 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.123e-05/0.1077, allocations: 7.438 kB / 331.4 MB, free: 15.61 MB / 286.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1077, allocations: 0 / 331.4 MB, free: 15.61 MB / 286.1 MB Notification: Performance of Templates: time 0.002935/0.1106, allocations: 0.6504 MB / 332.1 MB, free: 14.96 MB / 286.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/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