Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0009877/0.0009877, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 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.0009784/0.0009784, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9328/0.9328, allocations: 177.1 MB / 205 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.472e-06/1.472e-06, allocations: 0 / 272.9 MB, free: 1.543 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.439e-05/2.586e-05, allocations: 6.25 kB / 272.9 MB, free: 1.535 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001081/0.001107, allocations: 498.9 kB / 273.4 MB, free: 1.051 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002138/0.001321, allocations: 63.73 kB / 273.5 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.856e-05/0.001349, allocations: 4 kB / 273.5 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.843e-05/0.001388, allocations: 0 / 273.5 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.856e-05/0.001456, allocations: 15.97 kB / 273.5 MB, free: 0.9688 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001591/0.001616, allocations: 19.92 kB / 273.5 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 8.377e-05/0.001699, allocations: 23.91 kB / 273.6 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.621e-05/0.001736, allocations: 3.984 kB / 273.6 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.139e-05/0.001777, allocations: 12 kB / 273.6 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.571e-05/0.001843, allocations: 23.97 kB / 273.6 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.671e-05/0.001859, allocations: 4 kB / 273.6 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.086e-05/0.0019, allocations: 7.984 kB / 273.6 MB, free: 0.875 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.759e-05/0.001948, allocations: 11.92 kB / 273.6 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.894e-05/0.001977, allocations: 8 kB / 273.6 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.462e-05/0.002071, allocations: 19.92 kB / 273.6 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.973e-06/0.002073, allocations: 0 / 273.6 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.002074, allocations: 0 / 273.6 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.047e-06/0.002078, allocations: 4 kB / 273.6 MB, free: 0.832 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.000369/0.002447, allocations: 390.2 kB / 274 MB, free: 416 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.002484, allocations: 8.031 kB / 274 MB, free: 408 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.6e-05/0.00252, allocations: 8.891 kB / 274 MB, free: 400 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.341e-05/0.002593, allocations: 124.6 kB / 274.2 MB, free: 248 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.689e-06/0.002603, allocations: 384 / 274.2 MB, free: 248 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.068e-05/0.002614, allocations: 384 / 274.2 MB, free: 248 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.373e-05/0.002697, allocations: 71.89 kB / 274.2 MB, free: 164 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.694e-06/0.002705, allocations: 192 / 274.2 MB, free: 164 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-06/0.002714, allocations: 384 / 274.2 MB, free: 164 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.002721, allocations: 384 / 274.2 MB, free: 164 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.067e-05/0.002742, allocations: 33.64 kB / 274.3 MB, free: 124 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001053/0.002847, allocations: 120.7 kB / 274.4 MB, free: 15.97 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.894e-05/0.002906, allocations: 68.7 kB / 274.5 MB, free: 15.88 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.004e-05/0.002936, allocations: 45.45 kB / 274.5 MB, free: 15.83 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.658e-06/0.002941, allocations: 0 / 274.5 MB, free: 15.83 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.94e-05/0.00298, allocations: 63.09 kB / 274.6 MB, free: 15.75 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 9.22e-07/0.002981, allocations: 0 / 274.6 MB, free: 15.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002062/0.003187, allocations: 162.7 kB / 274.7 MB, free: 15.57 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.355e-05/0.003221, allocations: 77.11 kB / 274.8 MB, free: 15.47 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.031e-05/0.003301, allocations: 181.9 kB / 275 MB, free: 15.28 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.716e-06/0.00331, allocations: 25.7 kB / 275 MB, free: 15.25 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.632e-05/0.003346, allocations: 130.9 kB / 275.1 MB, free: 15.11 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.038e-05/0.003366, allocations: 11.89 kB / 275.1 MB, free: 15.1 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.581e-05/0.003392, allocations: 23.36 kB / 275.2 MB, free: 15.07 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.684e-05/0.003489, allocations: 0.4923 MB / 275.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.255e-05/0.003512, allocations: 29.7 kB / 275.7 MB, free: 14.53 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.77e-05/0.003529, allocations: 37.69 kB / 275.7 MB, free: 14.49 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.426e-05/0.003574, allocations: 75.09 kB / 275.8 MB, free: 14.4 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.003575, allocations: 0 / 275.8 MB, free: 14.4 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.465e-05/0.00366, allocations: 125.2 kB / 275.9 MB, free: 14.26 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.496e-05/0.003685, allocations: 33.7 kB / 275.9 MB, free: 14.22 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.003689, allocations: 0 / 275.9 MB, free: 14.22 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.003703, allocations: 0 / 275.9 MB, free: 14.22 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.266e-06/0.003706, allocations: 0 / 275.9 MB, free: 14.22 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.003712, allocations: 8.047 kB / 276 MB, free: 14.21 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.571e-05/0.003727, allocations: 11.89 kB / 276 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.214e-06/0.003735, allocations: 3.984 kB / 276 MB, free: 14.2 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 6.754e-05/0.003802, allocations: 186.3 kB / 276.1 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.935e-06/0.00381, allocations: 4 kB / 276.2 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.479e-05/0.003825, allocations: 11.98 kB / 276.2 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.003828, allocations: 4 kB / 276.2 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.003831, allocations: 0 / 276.2 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.003835, allocations: 7.875 kB / 276.2 MB, free: 13.97 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.549e-05/0.0039, allocations: 120.6 kB / 276.3 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.003901, allocations: 0 / 276.3 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.3e-07/0.003902, allocations: 4 kB / 276.3 MB, free: 13.81 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.253e-06/0.003903, allocations: 0 / 276.3 MB, free: 13.81 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.283e-06/0.00391, allocations: 0 / 276.3 MB, free: 13.81 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.003912, allocations: 4 kB / 276.3 MB, free: 13.81 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.003913, allocations: 0 / 276.3 MB, free: 13.81 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001514/0.004064, allocations: 179.7 kB / 276.5 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.52e-06/0.00407, allocations: 0 / 276.5 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.387e-05/0.004084, allocations: 4.25 kB / 276.5 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.101e-06/0.00409, allocations: 0 / 276.5 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.338e-05/0.004103, allocations: 8 kB / 276.5 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-06/0.004108, allocations: 7.984 kB / 276.5 MB, free: 13.58 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.125e-05/0.00414, allocations: 127.2 kB / 276.6 MB, free: 13.45 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00414, allocations: 0 / 276.6 MB, free: 13.45 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001259/0.004266, allocations: 11.94 kB / 276.6 MB, free: 13.44 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.0002066/0.004472, allocations: 135.5 kB / 276.8 MB, free: 13.31 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00011/0.004582, allocations: 142.4 kB / 276.9 MB, free: 13.14 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.004585, allocations: 4.062 kB / 276.9 MB, free: 13.14 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.869e-05/0.004623, allocations: 104.8 kB / 277 MB, free: 13.02 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001013/0.004725, allocations: 7.984 kB / 277 MB, free: 13.01 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003283/0.005053, allocations: 151.9 kB / 277.2 MB, free: 12.82 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.96e-05/0.005082, allocations: 59.34 kB / 277.2 MB, free: 12.75 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.829e-06/0.005087, allocations: 0 / 277.2 MB, free: 12.75 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.216e-05/0.005099, allocations: 8.5 kB / 277.2 MB, free: 12.74 MB / 266.7 MB Notification: Performance of SimCode: time 4.71e-07/0.0051, allocations: 0 / 277.2 MB, free: 12.74 MB / 266.7 MB Notification: Performance of Templates: time 0.002091/0.007191, allocations: 0.7024 MB / 277.9 MB, free: 12.05 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.761248406022787]