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.001277/0.001277, allocations: 110.5 kB / 17.73 MB, free: 5.324 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.001256/0.001256, allocations: 187 kB / 18.66 MB, free: 4.395 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.555/1.555, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001101/0.001101, allocations: 48.36 kB / 328.5 MB, free: 3.332 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09557/0.09668, allocations: 46.63 MB / 375.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001539/0.09825, allocations: 490.5 kB / 375.6 MB, free: 4.117 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002323/0.0985, allocations: 59.78 kB / 375.7 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.588e-05/0.09854, allocations: 0 / 375.7 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.111e-05/0.09858, allocations: 3.938 kB / 375.7 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.553e-05/0.09865, allocations: 19.92 kB / 375.7 MB, free: 4.035 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001471/0.0988, allocations: 19.97 kB / 375.7 MB, free: 4.016 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.118e-05/0.0989, allocations: 19.98 kB / 375.7 MB, free: 3.996 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.811e-05/0.09896, allocations: 7.938 kB / 375.7 MB, free: 3.988 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.934e-05/0.09899, allocations: 15.97 kB / 375.7 MB, free: 3.973 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.403e-05/0.09906, allocations: 19.98 kB / 375.8 MB, free: 3.953 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.535e-05/0.09908, allocations: 0 / 375.8 MB, free: 3.953 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.126e-05/0.09913, allocations: 7.938 kB / 375.8 MB, free: 3.945 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.352e-05/0.09918, allocations: 11.92 kB / 375.8 MB, free: 3.934 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.383e-05/0.09923, allocations: 15.92 kB / 375.8 MB, free: 3.918 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.412e-05/0.09932, allocations: 23.92 kB / 375.8 MB, free: 3.895 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.846e-06/0.09933, allocations: 0 / 375.8 MB, free: 3.895 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.09934, allocations: 0 / 375.8 MB, free: 3.895 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.09935, allocations: 4 kB / 375.8 MB, free: 3.891 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.0004093/0.09977, allocations: 361.1 kB / 376.2 MB, free: 3.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.09981, allocations: 8.031 kB / 376.2 MB, free: 3.473 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.836e-05/0.09985, allocations: 4.938 kB / 376.2 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001411/0.1, allocations: 164.3 kB / 376.3 MB, free: 3.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.307e-05/0.1, allocations: 4.375 kB / 376.4 MB, free: 3.266 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.979e-06/0.1, allocations: 384 / 376.4 MB, free: 3.266 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001468/0.1002, allocations: 62.23 kB / 376.4 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.1002, allocations: 4.188 kB / 376.4 MB, free: 3.195 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.1002, allocations: 7.938 kB / 376.4 MB, free: 3.188 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.1002, allocations: 0 / 376.4 MB, free: 3.188 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.979e-05/0.1003, allocations: 27.92 kB / 376.5 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001506/0.1004, allocations: 157.7 kB / 376.6 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.104e-05/0.1005, allocations: 50.61 kB / 376.7 MB, free: 2.898 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.951e-05/0.1006, allocations: 36.92 kB / 376.7 MB, free: 2.859 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.003e-06/0.1006, allocations: 0 / 376.7 MB, free: 2.859 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.802e-05/0.1006, allocations: 60.27 kB / 376.8 MB, free: 2.785 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 9.31e-07/0.1006, allocations: 0 / 376.8 MB, free: 2.785 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002677/0.1009, allocations: 195.2 kB / 376.9 MB, free: 2.582 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.037e-05/0.101, allocations: 81.11 kB / 377 MB, free: 2.484 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.719e-05/0.101, allocations: 113.8 kB / 377.1 MB, free: 2.363 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.243e-05/0.1011, allocations: 29.69 kB / 377.2 MB, free: 2.328 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.8e-05/0.1011, allocations: 84.14 kB / 377.2 MB, free: 2.242 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.012e-05/0.1011, allocations: 7.906 kB / 377.2 MB, free: 2.234 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.063e-05/0.1012, allocations: 21.75 kB / 377.3 MB, free: 2.207 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.1013, allocations: 318.8 kB / 377.6 MB, free: 1.887 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.982e-05/0.1013, allocations: 23.94 kB / 377.6 MB, free: 1.863 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.519e-05/0.1013, allocations: 28.23 kB / 377.6 MB, free: 1.836 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001073/0.1015, allocations: 120.2 kB / 377.8 MB, free: 1.703 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.1015, allocations: 4 kB / 377.8 MB, free: 1.699 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001507/0.1016, allocations: 155.3 kB / 377.9 MB, free: 1.535 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.061e-05/0.1017, allocations: 37.69 kB / 377.9 MB, free: 1.492 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.1017, allocations: 4 kB / 377.9 MB, free: 1.488 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.1017, allocations: 4 kB / 378 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.91e-07/0.1017, allocations: 0 / 378 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.1017, allocations: 0 / 378 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.817e-05/0.1017, allocations: 4 kB / 378 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.614e-06/0.1017, allocations: 0 / 378 MB, free: 1.48 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 8.422e-05/0.1018, allocations: 147.5 kB / 378.1 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.048e-05/0.1018, allocations: 4 kB / 378.1 MB, free: 1.316 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.6e-05/0.1019, allocations: 11.84 kB / 378.1 MB, free: 1.301 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.1019, allocations: 0 / 378.1 MB, free: 1.301 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.1019, allocations: 4 kB / 378.1 MB, free: 1.297 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.1019, allocations: 0 / 378.1 MB, free: 1.297 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.749e-05/0.102, allocations: 169.5 kB / 378.3 MB, free: 1.082 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.102, allocations: 0 / 378.3 MB, free: 1.082 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.102, allocations: 0 / 378.3 MB, free: 1.082 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.102, allocations: 0 / 378.3 MB, free: 1.082 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.102, allocations: 7.938 kB / 378.3 MB, free: 1.074 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.102, allocations: 0 / 378.3 MB, free: 1.074 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.102, allocations: 0 / 378.3 MB, free: 1.074 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001861/0.1022, allocations: 198.7 kB / 378.5 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.98e-05/0.1023, allocations: 77.11 kB / 378.6 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.682e-05/0.1023, allocations: 7.938 kB / 378.6 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.133e-05/0.1023, allocations: 0 / 378.6 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.432e-05/0.1023, allocations: 0 / 378.6 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.941e-06/0.1023, allocations: 4 kB / 378.6 MB, free: 0.75 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.292e-05/0.1024, allocations: 95.27 kB / 378.7 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1024, allocations: 0 / 378.7 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001833/0.1026, allocations: 8 kB / 378.7 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.0002733/0.1029, allocations: 146 kB / 378.8 MB, free: 0.5 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001669/0.103, allocations: 131.2 kB / 378.9 MB, free: 368 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.103, allocations: 4 kB / 378.9 MB, free: 364 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.706e-05/0.1031, allocations: 95.38 kB / 379 MB, free: 256 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001264/0.1032, allocations: 4 kB / 379 MB, free: 252 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002264/0.1035, allocations: 148.9 kB / 379.2 MB, free: 76 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1759/0.2794, allocations: 0.6741 MB / 379.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.423e-05/0.2794, allocations: 0.5625 kB / 379.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.911e-05/0.2794, allocations: 8.375 kB / 379.9 MB, free: 12.37 MB / 318.1 MB Notification: Performance of SimCode: time 9.72e-07/0.2794, allocations: 0 / 379.9 MB, free: 12.37 MB / 318.1 MB Notification: Performance of Templates: time 0.002898/0.2823, allocations: 0.6656 MB / 380.5 MB, free: 12.34 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins/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