Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_4.0.0_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.001205/0.001205, allocations: 105.9 kB / 17.16 MB, free: 6.082 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.001284/0.001284, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 222.9 MB / 241.8 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001253, allocations: 44.02 kB / 300.6 MB, free: 6.316 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1078, allocations: 49.44 MB / 350 MB, free: 4.867 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.002113/0.1099, allocations: 0.5433 MB / 350.6 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003066/0.1103, allocations: 67.77 kB / 350.6 MB, free: 4.258 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.327e-05/0.1103, allocations: 0 / 350.6 MB, free: 4.258 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.232e-05/0.1103, allocations: 0 / 350.6 MB, free: 4.258 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.448e-05/0.1105, allocations: 19.98 kB / 350.7 MB, free: 4.238 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001583/0.1106, allocations: 19.98 kB / 350.7 MB, free: 4.219 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 5.266e-05/0.1107, allocations: 15.98 kB / 350.7 MB, free: 4.203 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.568e-05/0.1107, allocations: 3.984 kB / 350.7 MB, free: 4.199 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.448e-05/0.1108, allocations: 8 kB / 350.7 MB, free: 4.191 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.338e-05/0.1109, allocations: 31.89 kB / 350.7 MB, free: 4.16 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.444e-05/0.1109, allocations: 0 / 350.7 MB, free: 4.16 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.902e-05/0.1109, allocations: 11.94 kB / 350.8 MB, free: 4.148 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.401e-05/0.111, allocations: 0 / 350.8 MB, free: 4.148 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.692e-05/0.111, allocations: 7.938 kB / 350.8 MB, free: 4.141 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.29e-05/0.1111, allocations: 27.97 kB / 350.8 MB, free: 4.113 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1111, allocations: 3.938 kB / 350.8 MB, free: 4.109 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1111, allocations: 0 / 350.8 MB, free: 4.109 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.1112, allocations: 0 / 350.8 MB, free: 4.109 MB / 286.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.0003787/0.1115, allocations: 361.2 kB / 351.1 MB, free: 3.699 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.1116, allocations: 12.02 kB / 351.2 MB, free: 3.688 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.931e-05/0.1116, allocations: 8.844 kB / 351.2 MB, free: 3.68 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001176/0.1118, allocations: 164.6 kB / 351.3 MB, free: 3.48 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.258e-05/0.1118, allocations: 384 / 351.3 MB, free: 3.48 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.247e-05/0.1118, allocations: 4.375 kB / 351.3 MB, free: 3.477 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001282/0.1119, allocations: 62.23 kB / 351.4 MB, free: 3.41 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.948e-06/0.112, allocations: 4.125 kB / 351.4 MB, free: 3.406 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.2e-05/0.112, allocations: 3.938 kB / 351.4 MB, free: 3.402 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.251e-06/0.112, allocations: 4 kB / 351.4 MB, free: 3.398 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.752e-05/0.112, allocations: 31.92 kB / 351.4 MB, free: 3.367 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001536/0.1122, allocations: 153.7 kB / 351.6 MB, free: 3.168 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.017e-05/0.1123, allocations: 38.58 kB / 351.6 MB, free: 3.121 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.778e-05/0.1123, allocations: 48.92 kB / 351.7 MB, free: 3.07 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.558e-06/0.1123, allocations: 0 / 351.7 MB, free: 3.07 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.548e-05/0.1124, allocations: 64.25 kB / 351.7 MB, free: 2.992 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.292e-06/0.1124, allocations: 0 / 351.7 MB, free: 2.992 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002991/0.1127, allocations: 191.1 kB / 351.9 MB, free: 2.793 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.791e-05/0.1128, allocations: 81.11 kB / 352 MB, free: 2.695 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.323e-05/0.1129, allocations: 109.8 kB / 352.1 MB, free: 2.578 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.596e-05/0.1129, allocations: 25.7 kB / 352.1 MB, free: 2.547 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.25e-05/0.1129, allocations: 88.17 kB / 352.2 MB, free: 2.457 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.136e-05/0.113, allocations: 7.906 kB / 352.2 MB, free: 2.449 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.599e-05/0.113, allocations: 21.7 kB / 352.2 MB, free: 2.422 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.867e-05/0.1131, allocations: 314.8 kB / 352.6 MB, free: 2.105 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.31e-05/0.1132, allocations: 23.98 kB / 352.6 MB, free: 2.082 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.544e-05/0.1132, allocations: 31.98 kB / 352.6 MB, free: 2.051 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.144e-05/0.1133, allocations: 116.2 kB / 352.7 MB, free: 1.922 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1133, allocations: 0 / 352.7 MB, free: 1.922 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001563/0.1135, allocations: 151.4 kB / 352.9 MB, free: 1.762 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.078e-05/0.1135, allocations: 41.7 kB / 352.9 MB, free: 1.715 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.1135, allocations: 3.938 kB / 352.9 MB, free: 1.711 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.1135, allocations: 3.938 kB / 352.9 MB, free: 1.707 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.272e-06/0.1136, allocations: 0 / 352.9 MB, free: 1.707 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.1136, allocations: 0 / 352.9 MB, free: 1.707 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.645e-05/0.1136, allocations: 7.984 kB / 352.9 MB, free: 1.699 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.1136, allocations: 0 / 352.9 MB, free: 1.699 MB / 286.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 9.444e-05/0.1137, allocations: 139.5 kB / 353.1 MB, free: 1.547 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.574e-05/0.1137, allocations: 11.89 kB / 353.1 MB, free: 1.535 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.9e-05/0.1138, allocations: 11.84 kB / 353.1 MB, free: 1.516 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.1138, allocations: 192 / 353.1 MB, free: 1.516 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.1138, allocations: 4 kB / 353.1 MB, free: 1.512 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.1138, allocations: 3.984 kB / 353.1 MB, free: 1.508 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.952e-05/0.1139, allocations: 153.7 kB / 353.2 MB, free: 1.309 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.1139, allocations: 0 / 353.2 MB, free: 1.309 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.01e-07/0.1139, allocations: 4 kB / 353.2 MB, free: 1.305 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.1139, allocations: 0 / 353.2 MB, free: 1.305 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.208e-05/0.1139, allocations: 7.922 kB / 353.3 MB, free: 1.297 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.1139, allocations: 0 / 353.3 MB, free: 1.297 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1139, allocations: 4.188 kB / 353.3 MB, free: 1.293 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001971/0.1141, allocations: 202.7 kB / 353.5 MB, free: 1.07 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.649e-05/0.1142, allocations: 88.94 kB / 353.5 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.912e-05/0.1142, allocations: 11.94 kB / 353.6 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.382e-05/0.1142, allocations: 4 kB / 353.6 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.551e-05/0.1143, allocations: 0 / 353.6 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.364e-06/0.1143, allocations: 4 kB / 353.6 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.757e-05/0.1143, allocations: 87.27 kB / 353.6 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1143, allocations: 4.031 kB / 353.6 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001965/0.1145, allocations: 8 kB / 353.7 MB, free: 0.8477 MB / 286.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.0002914/0.1148, allocations: 131.9 kB / 353.8 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001679/0.115, allocations: 127.4 kB / 353.9 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/0.115, allocations: 8 kB / 353.9 MB, free: 0.582 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.401e-05/0.1151, allocations: 95.39 kB / 354 MB, free: 488 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001479/0.1152, allocations: 4 kB / 354 MB, free: 484 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00028/0.1155, allocations: 168.6 kB / 354.2 MB, free: 280 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002602/0.1158, allocations: 0.6809 MB / 354.9 MB, free: 15.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.05e-05/0.1158, allocations: 7.438 kB / 354.9 MB, free: 15.56 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1158, allocations: 0 / 354.9 MB, free: 15.56 MB / 302.1 MB Notification: Performance of Templates: time 0.001962/0.1178, allocations: 0.6855 MB / 355.6 MB, free: 14.88 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches