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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009194/0.0009194, allocations: 85.8 kB / 21.42 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009169/0.0009169, allocations: 166 kB / 24.82 MB, free: 8.766 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9697/0.9697, allocations: 177 MB / 205.1 MB, free: 5.465 MB / 186.7 MB " [Timeout remaining time 179] 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=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.323e-06/1.323e-06, allocations: 0 / 273.3 MB, free: 1.266 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.843e-05/1.975e-05, allocations: 5.266 kB / 273.3 MB, free: 1.262 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001022/0.001041, allocations: 0.4989 MB / 273.8 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001762/0.001217, allocations: 67.78 kB / 273.8 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.943e-05/0.001247, allocations: 0 / 273.8 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.452e-05/0.001281, allocations: 0 / 273.8 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.268e-05/0.001354, allocations: 15.92 kB / 273.9 MB, free: 0.6797 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001419/0.001496, allocations: 23.91 kB / 273.9 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 8.229e-05/0.001578, allocations: 19.98 kB / 273.9 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.308e-05/0.001611, allocations: 0 / 273.9 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.242e-05/0.001654, allocations: 19.97 kB / 273.9 MB, free: 0.6172 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.3e-05/0.001727, allocations: 23.92 kB / 273.9 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.859e-05/0.001745, allocations: 0 / 273.9 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.362e-05/0.001789, allocations: 11.98 kB / 274 MB, free: 0.582 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.995e-05/0.001829, allocations: 4 kB / 274 MB, free: 0.5781 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.442e-05/0.001853, allocations: 4 kB / 274 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.663e-05/0.00195, allocations: 31.84 kB / 274 MB, free: 0.543 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.413e-06/0.001951, allocations: 0 / 274 MB, free: 0.543 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.11e-07/0.001952, allocations: 4 kB / 274 MB, free: 0.5391 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.001957, allocations: 0 / 274 MB, free: 0.5391 MB / 250.7 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.0005307/0.002487, allocations: 390.2 kB / 274.4 MB, free: 116 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.271e-05/0.00252, allocations: 15.98 kB / 274.4 MB, free: 100 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.59e-05/0.002546, allocations: 8.891 kB / 274.4 MB, free: 92 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.617e-05/0.002622, allocations: 112.6 kB / 274.5 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.746e-06/0.002631, allocations: 4.375 kB / 274.5 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.863e-06/0.002638, allocations: 4.375 kB / 274.5 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.531e-05/0.002703, allocations: 63.95 kB / 274.6 MB, free: 15.87 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.879e-06/0.002708, allocations: 192 / 274.6 MB, free: 15.87 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.751e-06/0.002714, allocations: 384 / 274.6 MB, free: 15.87 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.002719, allocations: 384 / 274.6 MB, free: 15.87 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.593e-05/0.002734, allocations: 33.64 kB / 274.6 MB, free: 15.83 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.603e-05/0.00281, allocations: 109.2 kB / 274.7 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.751e-05/0.002848, allocations: 60.77 kB / 274.8 MB, free: 15.62 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.805e-05/0.002866, allocations: 41.5 kB / 274.8 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.146e-06/0.002869, allocations: 4 kB / 274.8 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.992e-05/0.002899, allocations: 59.09 kB / 274.9 MB, free: 15.49 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 1.002e-06/0.0029, allocations: 0 / 274.9 MB, free: 15.49 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001553/0.003055, allocations: 162.8 kB / 275 MB, free: 15.31 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.977e-05/0.003085, allocations: 81.11 kB / 275.1 MB, free: 15.21 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.866e-05/0.003154, allocations: 169.9 kB / 275.3 MB, free: 15.03 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.296e-06/0.003162, allocations: 25.7 kB / 275.3 MB, free: 15 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.531e-05/0.003197, allocations: 142.9 kB / 275.5 MB, free: 14.85 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.446e-05/0.003212, allocations: 7.891 kB / 275.5 MB, free: 14.84 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.622e-05/0.003238, allocations: 27.36 kB / 275.5 MB, free: 14.81 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.003339, allocations: 0.4883 MB / 276 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.732e-05/0.003356, allocations: 29.7 kB / 276 MB, free: 14.27 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.588e-05/0.003372, allocations: 37.69 kB / 276 MB, free: 14.23 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.016e-05/0.003412, allocations: 75.09 kB / 276.1 MB, free: 14.14 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.003414, allocations: 0 / 276.1 MB, free: 14.14 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.702e-05/0.003491, allocations: 121 kB / 276.2 MB, free: 14 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/0.003516, allocations: 36.36 kB / 276.3 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.00352, allocations: 0 / 276.3 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.574e-06/0.003527, allocations: 4.062 kB / 276.3 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.52e-07/0.003528, allocations: 0 / 276.3 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.386e-06/0.003532, allocations: 3.984 kB / 276.3 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.276e-05/0.003544, allocations: 8.203 kB / 276.3 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-06/0.00355, allocations: 3.938 kB / 276.3 MB, free: 13.95 MB / 266.7 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 0.0003204/0.003871, allocations: 194.3 kB / 276.5 MB, free: 13.74 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.326e-06/0.003879, allocations: 4 kB / 276.5 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.392e-05/0.003893, allocations: 7.984 kB / 276.5 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.003895, allocations: 0 / 276.5 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.003897, allocations: 4 kB / 276.5 MB, free: 13.72 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.0039, allocations: 4 kB / 276.5 MB, free: 13.72 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.873e-05/0.003958, allocations: 101.2 kB / 276.6 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.003959, allocations: 0 / 276.6 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.61e-07/0.00396, allocations: 0 / 276.6 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.003962, allocations: 3.984 kB / 276.6 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.53e-06/0.003968, allocations: 4 kB / 276.6 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.103e-06/0.003969, allocations: 0 / 276.6 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.00397, allocations: 0 / 276.6 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001131/0.004083, allocations: 179.7 kB / 276.8 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.009e-06/0.004088, allocations: 0 / 276.8 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.199e-05/0.0041, allocations: 4 kB / 276.8 MB, free: 13.37 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.222e-06/0.004106, allocations: 4.031 kB / 276.8 MB, free: 13.37 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.055e-05/0.004116, allocations: 4 kB / 276.8 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.078e-06/0.004121, allocations: 4 kB / 276.8 MB, free: 13.36 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.398e-05/0.004155, allocations: 127.2 kB / 276.9 MB, free: 13.23 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.004155, allocations: 0 / 276.9 MB, free: 13.23 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001216/0.004276, allocations: 12 kB / 276.9 MB, free: 13.22 MB / 266.7 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.0002058/0.004482, allocations: 130 kB / 277.1 MB, free: 13.09 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001107/0.004593, allocations: 146.4 kB / 277.2 MB, free: 12.92 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.004594, allocations: 4 kB / 277.2 MB, free: 12.91 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.778e-05/0.004632, allocations: 96.78 kB / 277.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000102/0.004734, allocations: 11.94 kB / 277.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001647/0.004899, allocations: 159.8 kB / 277.5 MB, free: 12.59 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.682e-05/0.004926, allocations: 59.34 kB / 277.5 MB, free: 12.52 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.589e-06/0.00493, allocations: 0 / 277.5 MB, free: 12.52 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.178e-05/0.004992, allocations: 86.19 kB / 277.6 MB, free: 12.43 MB / 266.7 MB Notification: Performance of SimCode: time 6.41e-07/0.004993, allocations: 0 / 277.6 MB, free: 12.43 MB / 266.7 MB Notification: Performance of Templates: time 0.002058/0.00705, allocations: 0.7457 MB / 278.4 MB, free: 11.7 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.60575640713796]