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.0009658/0.0009657, allocations: 94.14 kB / 16.95 MB, free: 6.113 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.001101/0.001101, allocations: 175.3 kB / 17.84 MB, free: 5.73 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.625/1.625, allocations: 205.4 MB / 224 MB, free: 13.05 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.000483/0.0004832, allocations: 11.98 kB / 280.8 MB, free: 3.727 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09658/0.09708, allocations: 47.59 MB / 328.3 MB, free: 4.07 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0006296/0.09775, allocations: 208.5 kB / 328.6 MB, free: 3.867 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002594/0.09803, allocations: 55.83 kB / 328.6 MB, free: 3.812 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.025e-05/0.09808, allocations: 0 / 328.6 MB, free: 3.812 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 2.97e-05/0.09812, allocations: 0 / 328.6 MB, free: 3.812 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.036e-05/0.09822, allocations: 19.95 kB / 328.6 MB, free: 3.793 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001713/0.0984, allocations: 15.94 kB / 328.6 MB, free: 3.777 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 6.695e-05/0.09848, allocations: 15.97 kB / 328.7 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.422e-05/0.09854, allocations: 5.406 kB / 328.7 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.866e-05/0.09858, allocations: 15.98 kB / 328.7 MB, free: 3.742 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.805e-05/0.09867, allocations: 23.91 kB / 328.7 MB, free: 3.719 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.027e-05/0.0987, allocations: 0 / 328.7 MB, free: 3.719 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.237e-05/0.09875, allocations: 4 kB / 328.7 MB, free: 3.715 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.51e-05/0.09879, allocations: 7.984 kB / 328.7 MB, free: 3.707 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 3.692e-05/0.09883, allocations: 25.7 kB / 328.7 MB, free: 3.676 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 9.32e-05/0.09893, allocations: 19.98 kB / 328.8 MB, free: 3.656 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.717e-06/0.09895, allocations: 4 kB / 328.8 MB, free: 3.652 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.09895, allocations: 0 / 328.8 MB, free: 3.652 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.09896, allocations: 0 / 328.8 MB, free: 3.652 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.0003685/0.09934, allocations: 353.3 kB / 329.1 MB, free: 3.254 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.09939, allocations: 8.031 kB / 329.1 MB, free: 3.246 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.846e-05/0.09943, allocations: 4 kB / 329.1 MB, free: 3.242 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001228/0.09956, allocations: 170.9 kB / 329.3 MB, free: 3.035 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.651e-05/0.09958, allocations: 0 / 329.3 MB, free: 3.035 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.436e-05/0.0996, allocations: 7.938 kB / 329.3 MB, free: 3.027 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001247/0.09973, allocations: 65.62 kB / 329.4 MB, free: 2.957 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.09975, allocations: 0 / 329.4 MB, free: 2.957 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.398e-06/0.09976, allocations: 0 / 329.4 MB, free: 2.957 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.09977, allocations: 4 kB / 329.4 MB, free: 2.953 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.113e-05/0.09982, allocations: 27.98 kB / 329.4 MB, free: 2.926 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001789/0.1, allocations: 157.7 kB / 329.5 MB, free: 2.723 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.752e-05/0.1001, allocations: 50.5 kB / 329.6 MB, free: 2.664 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.682e-05/0.1001, allocations: 36.92 kB / 329.6 MB, free: 2.625 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.248e-06/0.1002, allocations: 0 / 329.6 MB, free: 2.625 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.745e-05/0.1002, allocations: 72.16 kB / 329.7 MB, free: 2.539 MB / 270.1 MB Notification: Performance of pre-optimization done (n=4): time 1.122e-06/0.1002, allocations: 0 / 329.7 MB, free: 2.539 MB / 270.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003119/0.1006, allocations: 179.3 kB / 329.9 MB, free: 2.352 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.08e-05/0.1006, allocations: 77.11 kB / 329.9 MB, free: 2.258 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001501/0.1008, allocations: 117.8 kB / 330.1 MB, free: 2.133 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.258e-05/0.1008, allocations: 25.7 kB / 330.1 MB, free: 2.102 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.506e-05/0.1008, allocations: 80.14 kB / 330.2 MB, free: 2.02 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.291e-05/0.1009, allocations: 11.91 kB / 330.2 MB, free: 2.008 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-06/0.1009, allocations: 0 / 330.2 MB, free: 2.008 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.101, allocations: 318.9 kB / 330.5 MB, free: 1.688 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.524e-05/0.101, allocations: 27.98 kB / 330.5 MB, free: 1.66 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.884e-05/0.1011, allocations: 27.98 kB / 330.5 MB, free: 1.633 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.395e-05/0.1011, allocations: 53.88 kB / 330.6 MB, free: 1.574 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1011, allocations: 0 / 330.6 MB, free: 1.574 MB / 270.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001667/0.1013, allocations: 159.2 kB / 330.8 MB, free: 1.406 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.113e-05/0.1014, allocations: 33.7 kB / 330.8 MB, free: 1.367 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.313e-06/0.1014, allocations: 3.953 kB / 330.8 MB, free: 1.363 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.1014, allocations: 0 / 330.8 MB, free: 1.363 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.192e-06/0.1014, allocations: 0 / 330.8 MB, free: 1.363 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.1014, allocations: 8.047 kB / 330.8 MB, free: 1.355 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.257e-05/0.1014, allocations: 4 kB / 330.8 MB, free: 1.352 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.596e-06/0.1015, allocations: 0 / 330.8 MB, free: 1.352 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 0.0001216/0.1016, allocations: 147.7 kB / 330.9 MB, free: 1.191 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.54e-05/0.1016, allocations: 8 kB / 331 MB, free: 1.184 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.824e-05/0.1016, allocations: 11.89 kB / 331 MB, free: 1.168 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.1016, allocations: 7.953 kB / 331 MB, free: 1.16 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.1016, allocations: 3.938 kB / 331 MB, free: 1.156 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.1017, allocations: 0 / 331 MB, free: 1.156 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001171/0.1018, allocations: 165.6 kB / 331.1 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1018, allocations: 0 / 331.1 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.1018, allocations: 0 / 331.1 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.1018, allocations: 0 / 331.1 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/0.1018, allocations: 4 kB / 331.1 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.1018, allocations: 3.984 kB / 331.1 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.1018, allocations: 3.953 kB / 331.1 MB, free: 0.9336 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001966/0.102, allocations: 190.7 kB / 331.3 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.522e-05/0.1021, allocations: 81.14 kB / 331.4 MB, free: 0.625 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.214e-05/0.1021, allocations: 7.984 kB / 331.4 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.305e-05/0.1021, allocations: 0 / 331.4 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.003e-05/0.1022, allocations: 3.953 kB / 331.4 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.647e-06/0.1022, allocations: 4 kB / 331.4 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001182/0.1023, allocations: 95.2 kB / 331.5 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.1023, allocations: 3.938 kB / 331.5 MB, free: 0.5117 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002092/0.1025, allocations: 12 kB / 331.5 MB, free: 0.5 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.0003812/0.1029, allocations: 126.6 kB / 331.7 MB, free: 384 kB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0002102/0.1031, allocations: 127.4 kB / 331.8 MB, free: 244 kB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.1031, allocations: 0 / 331.8 MB, free: 244 kB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 8.784e-05/0.1032, allocations: 95.39 kB / 331.9 MB, free: 136 kB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001847/0.1034, allocations: 11.98 kB / 331.9 MB, free: 124 kB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003136/0.1037, allocations: 142.8 kB / 332 MB, free: 15.95 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004233/0.1042, allocations: 0.6848 MB / 332.7 MB, free: 15.24 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.626e-06/0.1042, allocations: 4 kB / 332.7 MB, free: 15.24 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.195e-05/0.1042, allocations: 7.438 kB / 332.7 MB, free: 15.23 MB / 286.1 MB Notification: Performance of SimCode: time 7.41e-07/0.1042, allocations: 0 / 332.7 MB, free: 15.23 MB / 286.1 MB Notification: Performance of Templates: time 0.003051/0.1073, allocations: 0.6225 MB / 333.3 MB, free: 14.61 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