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.0008789/0.0008789, allocations: 84.25 kB / 22.22 MB, free: 2.285 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.0009294/0.0009294, allocations: 165.2 kB / 25.61 MB, free: 8.891 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.9373/0.9373, allocations: 177 MB / 205.9 MB, free: 4.461 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.373e-06/1.373e-06, allocations: 0 / 274.1 MB, free: 4.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.344e-05/1.481e-05, allocations: 3 kB / 274.1 MB, free: 4.316 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.000942/0.0009568, allocations: 0.4891 MB / 274.6 MB, free: 3.844 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001709/0.001128, allocations: 67.78 kB / 274.6 MB, free: 3.777 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.709e-05/0.001155, allocations: 0 / 274.6 MB, free: 3.777 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.61e-05/0.001191, allocations: 0 / 274.6 MB, free: 3.777 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.399e-05/0.001255, allocations: 19.86 kB / 274.7 MB, free: 3.758 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001218/0.001377, allocations: 20.91 kB / 274.7 MB, free: 3.738 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 6.855e-05/0.001445, allocations: 23.92 kB / 274.7 MB, free: 3.715 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.359e-05/0.001479, allocations: 0.5 kB / 274.7 MB, free: 3.715 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.464e-05/0.001513, allocations: 15.97 kB / 274.7 MB, free: 3.699 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.269e-05/0.001576, allocations: 24.59 kB / 274.7 MB, free: 3.676 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.386e-05/0.00159, allocations: 1.188 kB / 274.7 MB, free: 3.676 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.429e-05/0.001624, allocations: 8 kB / 274.7 MB, free: 3.668 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.454e-05/0.001659, allocations: 7.938 kB / 274.8 MB, free: 3.66 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.166e-05/0.001681, allocations: 13.25 kB / 274.8 MB, free: 3.648 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 8.084e-05/0.001761, allocations: 31.86 kB / 274.8 MB, free: 3.617 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.603e-06/0.001763, allocations: 0 / 274.8 MB, free: 3.617 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.71e-07/0.001763, allocations: 0 / 274.8 MB, free: 3.617 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.955e-06/0.001766, allocations: 1.969 kB / 274.8 MB, free: 3.617 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.0002467/0.002013, allocations: 386.3 kB / 275.2 MB, free: 3.195 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.853e-05/0.002041, allocations: 8.031 kB / 275.2 MB, free: 3.188 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.414e-05/0.002066, allocations: 4.938 kB / 275.2 MB, free: 3.184 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.069e-05/0.002136, allocations: 112.6 kB / 275.3 MB, free: 3.047 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.016e-05/0.002146, allocations: 8.375 kB / 275.3 MB, free: 3.039 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.211e-06/0.002153, allocations: 8.312 kB / 275.3 MB, free: 3.031 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.953e-05/0.002212, allocations: 63.95 kB / 275.4 MB, free: 2.957 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.002219, allocations: 192 / 275.4 MB, free: 2.957 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.049e-06/0.002224, allocations: 384 / 275.4 MB, free: 2.957 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.942e-06/0.00223, allocations: 4.359 kB / 275.4 MB, free: 2.953 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.795e-05/0.002247, allocations: 41.58 kB / 275.4 MB, free: 2.906 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.208e-05/0.00232, allocations: 93.27 kB / 275.5 MB, free: 2.789 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.077e-05/0.00236, allocations: 60.8 kB / 275.6 MB, free: 2.711 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.901e-05/0.002379, allocations: 41.42 kB / 275.6 MB, free: 2.66 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.876e-06/0.002382, allocations: 4 kB / 275.6 MB, free: 2.656 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.037e-05/0.002413, allocations: 67.11 kB / 275.7 MB, free: 2.574 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 5.11e-07/0.002413, allocations: 0 / 275.7 MB, free: 2.574 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001608/0.002574, allocations: 154.7 kB / 275.8 MB, free: 2.398 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.549e-05/0.002609, allocations: 85.09 kB / 275.9 MB, free: 2.297 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.573e-05/0.002675, allocations: 165.9 kB / 276.1 MB, free: 2.117 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.868e-06/0.002685, allocations: 25.7 kB / 276.1 MB, free: 2.086 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.396e-05/0.002729, allocations: 138.9 kB / 276.2 MB, free: 1.945 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.427e-05/0.002743, allocations: 7.891 kB / 276.2 MB, free: 1.938 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.291e-05/0.002766, allocations: 23.38 kB / 276.3 MB, free: 1.906 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.002868, allocations: 0.4922 MB / 276.8 MB, free: 1.402 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.736e-05/0.002885, allocations: 33.7 kB / 276.8 MB, free: 1.363 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.499e-05/0.0029, allocations: 33.7 kB / 276.8 MB, free: 1.324 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.313e-05/0.002944, allocations: 83.02 kB / 276.9 MB, free: 1.227 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.002945, allocations: 256 / 276.9 MB, free: 1.227 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.286e-05/0.003018, allocations: 109.1 kB / 277 MB, free: 1.102 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.365e-05/0.003042, allocations: 37.69 kB / 277.1 MB, free: 1.059 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.003046, allocations: 4 kB / 277.1 MB, free: 1.055 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.454e-06/0.003053, allocations: 0 / 277.1 MB, free: 1.055 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.32e-07/0.003054, allocations: 0 / 277.1 MB, free: 1.055 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.505e-06/0.003057, allocations: 0 / 277.1 MB, free: 1.055 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.19e-05/0.003069, allocations: 8.062 kB / 277.1 MB, free: 1.047 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.412e-06/0.003075, allocations: 3.938 kB / 277.1 MB, free: 1.043 MB / 250.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 6.671e-05/0.003142, allocations: 194.3 kB / 277.3 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.478e-06/0.003151, allocations: 7.953 kB / 277.3 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.003e-05/0.003161, allocations: 4.188 kB / 277.3 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.003163, allocations: 3.984 kB / 277.3 MB, free: 0.8164 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.275e-06/0.003166, allocations: 7.938 kB / 277.3 MB, free: 0.8086 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.195e-06/0.003168, allocations: 0 / 277.3 MB, free: 0.8086 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.281e-05/0.003221, allocations: 105.2 kB / 277.4 MB, free: 0.6797 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.91e-07/0.003221, allocations: 0 / 277.4 MB, free: 0.6797 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.7e-07/0.003222, allocations: 3.938 kB / 277.4 MB, free: 0.6758 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.31e-07/0.003222, allocations: 4 kB / 277.4 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.481e-06/0.003228, allocations: 4 kB / 277.4 MB, free: 0.668 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.91e-07/0.003228, allocations: 0 / 277.4 MB, free: 0.668 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.003229, allocations: 0 / 277.4 MB, free: 0.668 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001018/0.003331, allocations: 171.8 kB / 277.6 MB, free: 476 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.032e-06/0.003337, allocations: 3.953 kB / 277.6 MB, free: 472 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.121e-05/0.003348, allocations: 7.984 kB / 277.6 MB, free: 464 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.851e-06/0.003354, allocations: 0 / 277.6 MB, free: 464 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.516e-06/0.003362, allocations: 4 kB / 277.6 MB, free: 460 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-06/0.003366, allocations: 4 kB / 277.6 MB, free: 456 kB / 250.7 MB Notification: Performance of sorting global known variables: time 3.178e-05/0.003398, allocations: 127.2 kB / 277.7 MB, free: 328 kB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.003398, allocations: 0 / 277.7 MB, free: 328 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001219/0.00352, allocations: 12 kB / 277.7 MB, free: 316 kB / 250.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.0001862/0.003706, allocations: 129.1 kB / 277.8 MB, free: 188 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 9.106e-05/0.003797, allocations: 146.4 kB / 278 MB, free: 12 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.003798, allocations: 4 kB / 278 MB, free: 8 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.776e-05/0.003846, allocations: 100.8 kB / 278.1 MB, free: 15.89 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.17e-05/0.003938, allocations: 14.23 kB / 278.1 MB, free: 15.88 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001449/0.004083, allocations: 148.1 kB / 278.2 MB, free: 15.7 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.742e-05/0.00411, allocations: 63.2 kB / 278.3 MB, free: 15.61 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.828e-06/0.004114, allocations: 0 / 278.3 MB, free: 15.61 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.024e-05/0.004174, allocations: 90.17 kB / 278.4 MB, free: 15.52 MB / 266.7 MB Notification: Performance of SimCode: time 5.61e-07/0.004175, allocations: 0 / 278.4 MB, free: 15.52 MB / 266.7 MB Notification: Performance of Templates: time 0.001904/0.006078, allocations: 0.7506 MB / 279.1 MB, free: 14.79 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.614875968080014]