Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001166/0.001166, allocations: 109.5 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001266/0.001266, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.3 MB / 246.9 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 63.73 kB / 306.9 MB, free: 1.031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09318/0.09445, allocations: 50.55 MB / 357.4 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001764/0.09624, allocations: 0.5237 MB / 358 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003293/0.09661, allocations: 61.2 kB / 358 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.761e-05/0.09665, allocations: 4 kB / 358 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.006e-05/0.09672, allocations: 0 / 358 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.769e-05/0.09679, allocations: 23.91 kB / 358 MB, free: 13.87 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001317/0.09693, allocations: 12 kB / 358.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.759e-05/0.097, allocations: 23.95 kB / 358.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.641e-05/0.09705, allocations: 0 / 358.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.469e-05/0.09709, allocations: 15.94 kB / 358.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.299e-05/0.09717, allocations: 27.95 kB / 358.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.681e-05/0.09719, allocations: 0 / 358.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.216e-05/0.09724, allocations: 4 kB / 358.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.2e-05/0.09729, allocations: 8 kB / 358.1 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.935e-05/0.09733, allocations: 15.88 kB / 358.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 7.471e-05/0.09741, allocations: 11.98 kB / 358.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.09742, allocations: 0 / 358.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.12e-07/0.09743, allocations: 0 / 358.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.079e-06/0.09744, allocations: 0 / 358.2 MB, free: 13.75 MB / 302.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.0003661/0.09781, allocations: 361.2 kB / 358.5 MB, free: 13.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.09785, allocations: 12.02 kB / 358.5 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.76e-05/0.0979, allocations: 8.844 kB / 358.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001275/0.09803, allocations: 176.5 kB / 358.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.107e-06/0.09805, allocations: 4.375 kB / 358.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.104e-05/0.09806, allocations: 384 / 358.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001156/0.09818, allocations: 62.23 kB / 358.8 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.0982, allocations: 4.188 kB / 358.8 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.118e-05/0.09822, allocations: 3.938 kB / 358.8 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.09823, allocations: 0 / 358.8 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.921e-05/0.09828, allocations: 23.98 kB / 358.8 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001404/0.09843, allocations: 157.7 kB / 359 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.534e-05/0.09851, allocations: 50.56 kB / 359 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.116e-05/0.09856, allocations: 36.88 kB / 359 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.916e-06/0.09858, allocations: 3.984 kB / 359 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.488e-05/0.09863, allocations: 64.25 kB / 359.1 MB, free: 12.63 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.303e-06/0.09863, allocations: 0 / 359.1 MB, free: 12.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003035/0.09894, allocations: 187.2 kB / 359.3 MB, free: 12.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.527e-05/0.099, allocations: 81.05 kB / 359.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.68e-05/0.0991, allocations: 121.8 kB / 359.5 MB, free: 12.21 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.355e-05/0.09912, allocations: 25.7 kB / 359.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.664e-05/0.09916, allocations: 84.14 kB / 359.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/0.09919, allocations: 3.906 kB / 359.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.654e-05/0.09924, allocations: 25.7 kB / 359.6 MB, free: 12.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.09935, allocations: 310.8 kB / 359.9 MB, free: 11.74 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.514e-05/0.09939, allocations: 31.98 kB / 360 MB, free: 11.71 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.844e-05/0.09942, allocations: 23.98 kB / 360 MB, free: 11.69 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001052/0.09953, allocations: 120.3 kB / 360.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.09954, allocations: 3.938 kB / 360.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001506/0.0997, allocations: 151.4 kB / 360.3 MB, free: 11.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.052e-05/0.09975, allocations: 33.7 kB / 360.3 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.09976, allocations: 3.938 kB / 360.3 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.09977, allocations: 0 / 360.3 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-07/0.09978, allocations: 3.938 kB / 360.3 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.09979, allocations: 0 / 360.3 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.113e-05/0.09982, allocations: 11.89 kB / 360.3 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.514e-06/0.09983, allocations: 0 / 360.3 MB, free: 11.33 MB / 302.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.366e-05/0.09992, allocations: 147.5 kB / 360.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.289e-05/0.09994, allocations: 7.984 kB / 360.5 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.064e-05/0.09998, allocations: 15.84 kB / 360.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.09998, allocations: 0 / 360.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.09999, allocations: 0 / 360.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.063e-06/0.1, allocations: 0 / 360.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.909e-05/0.1001, allocations: 153.7 kB / 360.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1001, allocations: 0 / 360.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-07/0.1001, allocations: 0 / 360.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.1001, allocations: 0 / 360.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.1001, allocations: 19.92 kB / 360.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.1001, allocations: 0 / 360.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1001, allocations: 256 / 360.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002143/0.1004, allocations: 190.8 kB / 360.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.292e-05/0.1004, allocations: 92.88 kB / 360.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.11e-05/0.1004, allocations: 11.94 kB / 360.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.252e-05/0.1005, allocations: 0 / 360.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.44e-05/0.1005, allocations: 0 / 360.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/0.1005, allocations: 8.031 kB / 360.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.389e-05/0.1005, allocations: 91.27 kB / 361 MB, free: 10.49 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1006, allocations: 0 / 361 MB, free: 10.49 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001935/0.1007, allocations: 12 kB / 361 MB, free: 10.48 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.0002673/0.101, allocations: 127.2 kB / 361.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001412/0.1012, allocations: 131.4 kB / 361.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1012, allocations: 0 / 361.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.654e-05/0.1013, allocations: 95.39 kB / 361.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001383/0.1014, allocations: 7.938 kB / 361.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002656/0.1017, allocations: 172.4 kB / 361.6 MB, free: 9.902 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002511/0.1019, allocations: 0.6848 MB / 362.2 MB, free: 9.191 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.458e-06/0.102, allocations: 11.56 kB / 362.3 MB, free: 9.18 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.102, allocations: 0 / 362.3 MB, free: 9.18 MB / 302.1 MB Notification: Performance of Templates: time 0.002144/0.1041, allocations: 0.6789 MB / 362.9 MB, free: 8.512 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches