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.001521/0.001521, allocations: 95.62 kB / 16.93 MB, free: 5.984 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.001638/0.001638, allocations: 180.8 kB / 17.82 MB, free: 5.652 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.566/1.566, allocations: 205.4 MB / 224 MB, free: 13.16 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.0005429/0.0005433, allocations: 12 kB / 280.7 MB, free: 3.77 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1036, allocations: 47.59 MB / 328.3 MB, free: 4.113 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.000603/0.1042, allocations: 208.4 kB / 328.5 MB, free: 3.91 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002135/0.1045, allocations: 55.77 kB / 328.6 MB, free: 3.855 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.264e-05/0.1045, allocations: 0 / 328.6 MB, free: 3.855 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 2.898e-05/0.1045, allocations: 4 kB / 328.6 MB, free: 3.852 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 7.587e-05/0.1046, allocations: 27.89 kB / 328.6 MB, free: 3.824 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001282/0.1047, allocations: 12 kB / 328.6 MB, free: 3.812 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 5.168e-05/0.1048, allocations: 15.97 kB / 328.6 MB, free: 3.797 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.974e-05/0.1049, allocations: 0 / 328.6 MB, free: 3.797 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.425e-05/0.1049, allocations: 15.92 kB / 328.6 MB, free: 3.781 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.762e-05/0.105, allocations: 19.97 kB / 328.7 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.13e-05/0.105, allocations: 0 / 328.7 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.554e-05/0.105, allocations: 8 kB / 328.7 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.422e-05/0.1051, allocations: 4 kB / 328.7 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 2.723e-05/0.1051, allocations: 33.64 kB / 328.7 MB, free: 3.711 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 7.401e-05/0.1052, allocations: 11.98 kB / 328.7 MB, free: 3.699 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.214e-06/0.1052, allocations: 0 / 328.7 MB, free: 3.699 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.1052, allocations: 4 kB / 328.7 MB, free: 3.695 MB / 270.1 MB Notification: Performance of Transformations before backend: time 3.005e-06/0.1052, allocations: 0 / 328.7 MB, free: 3.695 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.0003036/0.1055, allocations: 357.3 kB / 329.1 MB, free: 3.293 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.121e-05/0.1056, allocations: 8.031 kB / 329.1 MB, free: 3.285 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.929e-05/0.1056, allocations: 3.984 kB / 329.1 MB, free: 3.281 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001144/0.1057, allocations: 170.9 kB / 329.3 MB, free: 3.074 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.1057, allocations: 0 / 329.3 MB, free: 3.074 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.671e-05/0.1058, allocations: 8 kB / 329.3 MB, free: 3.066 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001162/0.1059, allocations: 63.05 kB / 329.3 MB, free: 3 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/0.1059, allocations: 3.984 kB / 329.3 MB, free: 2.996 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.956e-06/0.1059, allocations: 0 / 329.3 MB, free: 2.996 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.1059, allocations: 0 / 329.3 MB, free: 2.996 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.165e-05/0.106, allocations: 27.94 kB / 329.4 MB, free: 2.969 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001428/0.1061, allocations: 157.6 kB / 329.5 MB, free: 2.766 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.943e-05/0.1062, allocations: 46.61 kB / 329.6 MB, free: 2.711 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.45e-06/0.1062, allocations: 4 kB / 329.6 MB, free: 2.707 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.425e-05/0.1062, allocations: 64.33 kB / 329.6 MB, free: 2.629 MB / 270.1 MB Notification: Performance of pre-optimization done (n=4): time 9.52e-07/0.1063, allocations: 0 / 329.6 MB, free: 2.629 MB / 270.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003215/0.1066, allocations: 268.3 kB / 329.9 MB, free: 2.336 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.51e-05/0.1066, allocations: 77.11 kB / 330 MB, free: 2.242 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.799e-05/0.1067, allocations: 113.8 kB / 330.1 MB, free: 2.121 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.371e-05/0.1067, allocations: 25.7 kB / 330.1 MB, free: 2.09 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.182e-05/0.1068, allocations: 88.17 kB / 330.2 MB, free: 2 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.855e-05/0.1068, allocations: 11.89 kB / 330.2 MB, free: 1.988 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.246e-06/0.1068, allocations: 0 / 330.2 MB, free: 1.988 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.107, allocations: 310.8 kB / 330.5 MB, free: 1.676 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.49e-05/0.1071, allocations: 31.92 kB / 330.5 MB, free: 1.645 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.009e-05/0.1071, allocations: 28.12 kB / 330.6 MB, free: 1.617 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.42e-05/0.1072, allocations: 57.72 kB / 330.6 MB, free: 1.555 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.1072, allocations: 0 / 330.6 MB, free: 1.555 MB / 270.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001583/0.1074, allocations: 155.3 kB / 330.8 MB, free: 1.391 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.701e-05/0.1074, allocations: 37.64 kB / 330.8 MB, free: 1.348 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.1074, allocations: 4.062 kB / 330.8 MB, free: 1.344 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.1074, allocations: 3.953 kB / 330.8 MB, free: 1.34 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.42e-07/0.1074, allocations: 0 / 330.8 MB, free: 1.34 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.1074, allocations: 0 / 330.8 MB, free: 1.34 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.978e-05/0.1075, allocations: 4 kB / 330.8 MB, free: 1.336 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.608e-06/0.1075, allocations: 3.984 kB / 330.8 MB, free: 1.332 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 (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 9.589e-05/0.1076, allocations: 143.5 kB / 331 MB, free: 1.176 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.616e-06/0.1076, allocations: 4 kB / 331 MB, free: 1.172 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.745e-05/0.1076, allocations: 11.89 kB / 331 MB, free: 1.156 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.1076, allocations: 7.953 kB / 331 MB, free: 1.148 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.1077, allocations: 0 / 331 MB, free: 1.148 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.714e-06/0.1077, allocations: 0 / 331 MB, free: 1.148 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001115/0.1078, allocations: 161.6 kB / 331.1 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.1078, allocations: 256 / 331.1 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.1078, allocations: 0 / 331.1 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.748e-06/0.1078, allocations: 4 kB / 331.1 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.592e-05/0.1078, allocations: 7.984 kB / 331.1 MB, free: 0.9297 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.1078, allocations: 3.938 kB / 331.2 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.1078, allocations: 3.953 kB / 331.2 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002106/0.1081, allocations: 198.6 kB / 331.3 MB, free: 0.7031 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.056e-05/0.1081, allocations: 77.11 kB / 331.4 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.835e-05/0.1081, allocations: 7.984 kB / 331.4 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.212e-05/0.1081, allocations: 0 / 331.4 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.405e-05/0.1082, allocations: 0 / 331.4 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-06/0.1082, allocations: 7.953 kB / 331.4 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of sorting global known variables: time 5.017e-05/0.1082, allocations: 91.27 kB / 331.5 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1082, allocations: 0 / 331.5 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0001997/0.1084, allocations: 12.03 kB / 331.5 MB, free: 0.4922 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 (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.0002653/0.1087, allocations: 125.1 kB / 331.7 MB, free: 380 kB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0001721/0.1089, allocations: 127.4 kB / 331.8 MB, free: 240 kB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1089, allocations: 0 / 331.8 MB, free: 240 kB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 6.754e-05/0.109, allocations: 95.39 kB / 331.9 MB, free: 132 kB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.699e-05/0.1091, allocations: 8.125 kB / 331.9 MB, free: 124 kB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002791/0.1094, allocations: 142.7 kB / 332 MB, free: 15.95 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003068/0.1097, allocations: 0.6887 MB / 332.7 MB, free: 15.24 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 6.182e-06/0.1097, allocations: 0 / 332.7 MB, free: 15.24 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.618e-06/0.1097, allocations: 7.438 kB / 332.7 MB, free: 15.23 MB / 286.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1097, allocations: 0 / 332.7 MB, free: 15.23 MB / 286.1 MB Notification: Performance of Templates: time 0.002774/0.1125, allocations: 0.6236 MB / 333.3 MB, free: 14.61 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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