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.001195/0.001196, allocations: 115.5 kB / 17.69 MB, free: 5.312 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.001277/0.001278, allocations: 191 kB / 18.63 MB, free: 4.379 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.431/1.431, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001046/0.001046, allocations: 47.19 kB / 302 MB, free: 5.199 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09037/0.09143, allocations: 49.45 MB / 351.5 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.00167/0.09314, allocations: 479.1 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002647/0.09343, allocations: 59.78 kB / 352 MB, free: 3.195 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.679e-05/0.09346, allocations: 0 / 352 MB, free: 3.195 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.413e-05/0.0935, allocations: 0 / 352 MB, free: 3.195 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.463e-05/0.09357, allocations: 11.98 kB / 352 MB, free: 3.184 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001378/0.09371, allocations: 27.91 kB / 352.1 MB, free: 3.156 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.201e-05/0.09381, allocations: 15.98 kB / 352.1 MB, free: 3.141 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.777e-05/0.09387, allocations: 4 kB / 352.1 MB, free: 3.137 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.197e-05/0.09391, allocations: 23.91 kB / 352.1 MB, free: 3.113 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.192e-05/0.09397, allocations: 19.98 kB / 352.1 MB, free: 3.094 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.501e-05/0.094, allocations: 4 kB / 352.1 MB, free: 3.09 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.12e-05/0.09404, allocations: 8 kB / 352.1 MB, free: 3.082 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.357e-05/0.09409, allocations: 11.97 kB / 352.1 MB, free: 3.07 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.133e-05/0.09413, allocations: 15.88 kB / 352.2 MB, free: 3.055 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.437e-05/0.09423, allocations: 15.98 kB / 352.2 MB, free: 3.039 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.09424, allocations: 0 / 352.2 MB, free: 3.039 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.09424, allocations: 7.875 kB / 352.2 MB, free: 3.031 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.528e-06/0.09425, allocations: 0 / 352.2 MB, free: 3.031 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.0003296/0.09459, allocations: 361.2 kB / 352.5 MB, free: 2.621 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.09463, allocations: 12.03 kB / 352.5 MB, free: 2.609 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.567e-05/0.09467, allocations: 8.844 kB / 352.6 MB, free: 2.602 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001027/0.09478, allocations: 168.3 kB / 352.7 MB, free: 2.398 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.39e-05/0.0948, allocations: 8.359 kB / 352.7 MB, free: 2.391 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.166e-05/0.09482, allocations: 384 / 352.7 MB, free: 2.391 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001148/0.09494, allocations: 58.25 kB / 352.8 MB, free: 2.328 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.09495, allocations: 4.125 kB / 352.8 MB, free: 2.324 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.09497, allocations: 7.938 kB / 352.8 MB, free: 2.316 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.09498, allocations: 0 / 352.8 MB, free: 2.316 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.952e-05/0.09502, allocations: 27.97 kB / 352.8 MB, free: 2.289 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001345/0.09516, allocations: 165.6 kB / 353 MB, free: 2.078 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.32e-05/0.09523, allocations: 46.61 kB / 353 MB, free: 2.023 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.749e-05/0.09527, allocations: 36.92 kB / 353.1 MB, free: 1.984 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.602e-06/0.09529, allocations: 0 / 353.1 MB, free: 1.984 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.529e-05/0.09534, allocations: 60.27 kB / 353.1 MB, free: 1.91 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.09534, allocations: 0 / 353.1 MB, free: 1.91 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002814/0.09563, allocations: 187.1 kB / 353.3 MB, free: 1.715 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.903e-05/0.09569, allocations: 89.14 kB / 353.4 MB, free: 1.609 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.034e-05/0.09578, allocations: 113.8 kB / 353.5 MB, free: 1.488 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.28e-05/0.09579, allocations: 25.7 kB / 353.5 MB, free: 1.457 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.91e-05/0.09584, allocations: 84.14 kB / 353.6 MB, free: 1.371 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.815e-05/0.09586, allocations: 3.906 kB / 353.6 MB, free: 1.367 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.33e-05/0.0959, allocations: 21.72 kB / 353.6 MB, free: 1.34 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.953e-05/0.096, allocations: 314.8 kB / 353.9 MB, free: 1.023 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.284e-05/0.09604, allocations: 28 kB / 354 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.789e-05/0.09607, allocations: 27.98 kB / 354 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.168e-05/0.09617, allocations: 116.2 kB / 354.1 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.09618, allocations: 0 / 354.1 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001465/0.09633, allocations: 155.3 kB / 354.3 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.203e-05/0.09637, allocations: 37.69 kB / 354.3 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.09638, allocations: 3.938 kB / 354.3 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.0964, allocations: 0 / 354.3 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.41e-07/0.09641, allocations: 3.938 kB / 354.3 MB, free: 0.625 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.09642, allocations: 0 / 354.3 MB, free: 0.625 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.297e-05/0.09644, allocations: 8.062 kB / 354.3 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-06/0.09646, allocations: 0 / 354.3 MB, free: 0.6172 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 8.86e-05/0.09655, allocations: 151.5 kB / 354.5 MB, free: 464 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.386e-05/0.09657, allocations: 7.906 kB / 354.5 MB, free: 456 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.141e-05/0.0966, allocations: 11.84 kB / 354.5 MB, free: 436 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/0.0966, allocations: 0 / 354.5 MB, free: 436 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.09661, allocations: 0 / 354.5 MB, free: 436 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.973e-06/0.09662, allocations: 0 / 354.5 MB, free: 436 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.088e-05/0.09671, allocations: 161.7 kB / 354.6 MB, free: 224 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.09672, allocations: 0 / 354.6 MB, free: 224 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.09673, allocations: 4 kB / 354.6 MB, free: 220 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.113e-06/0.09673, allocations: 0 / 354.6 MB, free: 220 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.09675, allocations: 7.938 kB / 354.7 MB, free: 212 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.09675, allocations: 0 / 354.7 MB, free: 212 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.09676, allocations: 4.188 kB / 354.7 MB, free: 208 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001911/0.09696, allocations: 194.8 kB / 354.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.861e-05/0.097, allocations: 84.95 kB / 354.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.916e-05/0.09703, allocations: 12.12 kB / 354.9 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.185e-05/0.09705, allocations: 4.031 kB / 354.9 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.632e-05/0.09707, allocations: 3.984 kB / 355 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-06/0.09708, allocations: 7.984 kB / 355 MB, free: 15.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.919e-05/0.09712, allocations: 87.22 kB / 355 MB, free: 15.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09713, allocations: 0 / 355 MB, free: 15.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002056/0.09734, allocations: 8 kB / 355.1 MB, free: 15.77 MB / 302.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.0002701/0.09762, allocations: 136.3 kB / 355.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001535/0.09778, allocations: 123.4 kB / 355.3 MB, free: 15.51 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.09779, allocations: 4 kB / 355.3 MB, free: 15.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.248e-05/0.09786, allocations: 95.31 kB / 355.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001405/0.09801, allocations: 8 kB / 355.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002344/0.09825, allocations: 144.9 kB / 355.6 MB, free: 15.22 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002126/0.09847, allocations: 0.6769 MB / 356.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.785e-06/0.09849, allocations: 4 kB / 356.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.154e-05/0.09851, allocations: 15.38 kB / 356.2 MB, free: 14.5 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.09851, allocations: 0 / 356.2 MB, free: 14.5 MB / 302.1 MB Notification: Performance of Templates: time 0.002595/0.1011, allocations: 0.6807 MB / 356.9 MB, free: 13.84 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 -s gbode -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