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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009533/0.0009533, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001618/0.002571, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008864/0.0008864, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001353/0.00224, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.159/1.159, allocations: 158.6 MB / 171.2 MB, free: 2.5 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2379/1.397, allocations: 49.5 MB / 220.7 MB, free: 1.355 MB / 218.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,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=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 222 MB, free: 88 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.058e-05/2.207e-05, allocations: 2.312 kB / 222 MB, free: 84 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001144/0.001166, allocations: 0.5439 MB / 222.5 MB, free: 15.54 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001154/0.001281, allocations: 59.8 kB / 222.6 MB, free: 15.48 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.49e-05/0.001306, allocations: 0 / 222.6 MB, free: 15.48 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 2.2e-05/0.001328, allocations: 3.938 kB / 222.6 MB, free: 15.47 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.393e-05/0.001382, allocations: 15.97 kB / 222.6 MB, free: 15.46 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 8.303e-05/0.001465, allocations: 15.98 kB / 222.6 MB, free: 15.44 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001095/0.001575, allocations: 27.86 kB / 222.6 MB, free: 15.41 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.849e-05/0.001623, allocations: 11.98 kB / 222.6 MB, free: 15.4 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.034e-05/0.001683, allocations: 11.98 kB / 222.7 MB, free: 15.39 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.525e-05/0.001759, allocations: 19.97 kB / 222.7 MB, free: 15.37 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.114e-05/0.00178, allocations: 8 kB / 222.7 MB, free: 15.36 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.649e-05/0.001826, allocations: 7.938 kB / 222.7 MB, free: 15.36 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.892e-05/0.001875, allocations: 11.94 kB / 222.7 MB, free: 15.34 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 2.373e-05/0.001899, allocations: 4 kB / 222.7 MB, free: 15.34 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001034/0.002002, allocations: 19.97 kB / 222.7 MB, free: 15.32 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.331e-05/0.002016, allocations: 0 / 222.7 MB, free: 15.32 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.002017, allocations: 3.938 kB / 222.7 MB, free: 15.32 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.161e-05/0.002029, allocations: 0 / 222.7 MB, free: 15.32 MB / 234.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.0003495/0.002378, allocations: 266.3 kB / 223 MB, free: 15.02 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.002415, allocations: 12.03 kB / 223 MB, free: 15.01 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.394e-05/0.002449, allocations: 0.9375 kB / 223 MB, free: 15.01 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001159/0.002565, allocations: 121.7 kB / 223.1 MB, free: 14.87 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.455e-05/0.00258, allocations: 4.375 kB / 223.1 MB, free: 14.86 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.27e-05/0.002592, allocations: 384 / 223.1 MB, free: 14.86 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001005/0.002693, allocations: 70.72 kB / 223.2 MB, free: 14.78 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.002701, allocations: 192 / 223.2 MB, free: 14.78 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.604e-06/0.002709, allocations: 384 / 223.2 MB, free: 14.78 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.002715, allocations: 4.359 kB / 223.2 MB, free: 14.78 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.907e-05/0.002734, allocations: 37.64 kB / 223.2 MB, free: 14.73 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.35e-05/0.002808, allocations: 59.88 kB / 223.3 MB, free: 14.66 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.823e-05/0.002866, allocations: 60.31 kB / 223.3 MB, free: 14.59 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.078e-05/0.002887, allocations: 38.59 kB / 223.4 MB, free: 14.54 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.492e-06/0.002893, allocations: 7.938 kB / 223.4 MB, free: 14.53 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.842e-05/0.002932, allocations: 60.27 kB / 223.5 MB, free: 14.46 MB / 234.7 MB Notification: Performance of pre-optimization done (n=4): time 1.102e-06/0.002933, allocations: 0 / 223.5 MB, free: 14.46 MB / 234.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001607/0.003093, allocations: 138.8 kB / 223.6 MB, free: 14.3 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.435e-05/0.003168, allocations: 166.2 kB / 223.8 MB, free: 14.1 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.804e-05/0.003246, allocations: 110.7 kB / 223.9 MB, free: 13.98 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.382e-05/0.00326, allocations: 25.7 kB / 223.9 MB, free: 13.95 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.405e-05/0.003284, allocations: 80.14 kB / 224 MB, free: 13.86 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.359e-05/0.003317, allocations: 11.94 kB / 224 MB, free: 13.85 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.839e-05/0.003346, allocations: 17.75 kB / 224 MB, free: 13.83 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.003448, allocations: 322.8 kB / 224.3 MB, free: 13.5 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.652e-05/0.003475, allocations: 40.47 kB / 224.3 MB, free: 13.46 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.172e-05/0.003497, allocations: 33.69 kB / 224.4 MB, free: 13.42 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.422e-05/0.003551, allocations: 83.27 kB / 224.5 MB, free: 13.32 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.003554, allocations: 0 / 224.5 MB, free: 13.32 MB / 234.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.717e-05/0.003631, allocations: 105.1 kB / 224.6 MB, free: 13.2 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.66e-05/0.003678, allocations: 33.69 kB / 224.6 MB, free: 13.16 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.003683, allocations: 0 / 224.6 MB, free: 13.16 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.003699, allocations: 0 / 224.6 MB, free: 13.16 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.366e-06/0.003703, allocations: 7.938 kB / 224.6 MB, free: 13.15 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.277e-06/0.003706, allocations: 4.062 kB / 224.6 MB, free: 13.15 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.017e-05/0.003726, allocations: 0 / 224.6 MB, free: 13.15 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-06/0.003735, allocations: 0 / 224.6 MB, free: 13.15 MB / 234.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 8.755e-05/0.003823, allocations: 158.2 kB / 224.8 MB, free: 12.98 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.366e-06/0.003831, allocations: 4 kB / 224.8 MB, free: 12.97 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.308e-05/0.003844, allocations: 4 kB / 224.8 MB, free: 12.97 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.003846, allocations: 0 / 224.8 MB, free: 12.97 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.003849, allocations: 4 kB / 224.8 MB, free: 12.96 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.003853, allocations: 0 / 224.8 MB, free: 12.96 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.921e-05/0.003922, allocations: 73.77 kB / 224.8 MB, free: 12.88 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.003923, allocations: 0 / 224.8 MB, free: 12.88 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.003924, allocations: 4 kB / 224.8 MB, free: 12.87 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.915e-06/0.003932, allocations: 7.953 kB / 224.9 MB, free: 12.86 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.003933, allocations: 0 / 224.9 MB, free: 12.86 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.639e-06/0.003938, allocations: 0 / 224.9 MB, free: 12.86 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.003939, allocations: 0 / 224.9 MB, free: 12.86 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.00394, allocations: 256 / 224.9 MB, free: 12.86 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000102/0.004042, allocations: 150.1 kB / 225 MB, free: 12.68 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.596e-05/0.004058, allocations: 11.94 kB / 225 MB, free: 12.67 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.565e-06/0.004066, allocations: 0 / 225 MB, free: 12.67 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.554e-05/0.004081, allocations: 8 kB / 225 MB, free: 12.66 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-06/0.004084, allocations: 0 / 225 MB, free: 12.66 MB / 234.7 MB Notification: Performance of sorting global known variables: time 1.43e-05/0.004098, allocations: 12.89 kB / 225 MB, free: 12.65 MB / 234.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004099, allocations: 0 / 225 MB, free: 12.65 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0001003/0.004199, allocations: 8 kB / 225 MB, free: 12.64 MB / 234.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.0003096/0.004508, allocations: 120.6 kB / 225.2 MB, free: 12.53 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0001484/0.004657, allocations: 143.6 kB / 225.3 MB, free: 12.36 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.004662, allocations: 96 / 225.3 MB, free: 12.36 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 5.679e-05/0.004718, allocations: 109.9 kB / 225.4 MB, free: 12.23 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.685e-05/0.004795, allocations: 17.61 kB / 225.4 MB, free: 12.22 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000244/0.005039, allocations: 163.8 kB / 225.6 MB, free: 12.02 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.87e-05/0.005078, allocations: 59.34 kB / 225.6 MB, free: 11.95 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 8.346e-06/0.005086, allocations: 0 / 225.6 MB, free: 11.95 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.095e-05/0.005157, allocations: 63.36 kB / 225.7 MB, free: 11.88 MB / 234.7 MB Notification: Performance of SimCode: time 1.142e-06/0.005158, allocations: 0 / 225.7 MB, free: 11.88 MB / 234.7 MB Notification: Performance of Templates: time 0.002556/0.007714, allocations: 0.742 MB / 226.4 MB, free: 11.14 MB / 234.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.974903696216643]