Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 68.08 kB / 21.69 MB, free: 2.863 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00431/0.00431, allocations: 145.3 kB / 24.97 MB, free: 8.781 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.044/1.044, allocations: 173.3 MB / 201.5 MB, free: 9.363 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.557e-06/3.557e-06, allocations: 0 / 268 MB, free: 6.793 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.16e-05/3.516e-05, allocations: 2.312 kB / 268 MB, free: 6.789 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001945/0.001981, allocations: 498 kB / 268.5 MB, free: 6.305 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002665/0.002247, allocations: 65.19 kB / 268.6 MB, free: 6.242 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.913e-05/0.002286, allocations: 0 / 268.6 MB, free: 6.242 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.934e-05/0.002336, allocations: 3.938 kB / 268.6 MB, free: 6.238 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.533e-05/0.002421, allocations: 15.92 kB / 268.6 MB, free: 6.223 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000188/0.002609, allocations: 19.97 kB / 268.6 MB, free: 6.203 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001053/0.002714, allocations: 19.98 kB / 268.6 MB, free: 6.184 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.889e-05/0.002763, allocations: 0 / 268.6 MB, free: 6.184 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.516e-05/0.002808, allocations: 15.97 kB / 268.7 MB, free: 6.168 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.677e-05/0.002895, allocations: 27.91 kB / 268.7 MB, free: 6.141 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.96e-05/0.002915, allocations: 4 kB / 268.7 MB, free: 6.137 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.916e-05/0.002964, allocations: 12 kB / 268.7 MB, free: 6.125 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.553e-05/0.003009, allocations: 7.938 kB / 268.7 MB, free: 6.117 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.815e-05/0.003047, allocations: 3.984 kB / 268.7 MB, free: 6.113 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001303/0.003178, allocations: 35.84 kB / 268.7 MB, free: 6.078 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.00318, allocations: 0 / 268.7 MB, free: 6.078 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.61e-07/0.003181, allocations: 0 / 268.7 MB, free: 6.078 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.003187, allocations: 0 / 268.7 MB, free: 6.078 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.0004178/0.003605, allocations: 386.3 kB / 269.1 MB, free: 5.656 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/0.003657, allocations: 12.92 kB / 269.1 MB, free: 5.645 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.695e-05/0.003704, allocations: 4.938 kB / 269.1 MB, free: 5.641 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001022/0.003807, allocations: 112.6 kB / 269.3 MB, free: 5.504 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.379e-05/0.00382, allocations: 4.375 kB / 269.3 MB, free: 5.5 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.042e-05/0.003831, allocations: 384 / 269.3 MB, free: 5.5 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001088/0.00394, allocations: 71.94 kB / 269.3 MB, free: 5.418 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.003947, allocations: 192 / 269.3 MB, free: 5.418 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.214e-05/0.003969, allocations: 8.359 kB / 269.3 MB, free: 5.41 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.00398, allocations: 4.312 kB / 269.3 MB, free: 5.406 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.916e-05/0.004009, allocations: 33.64 kB / 269.4 MB, free: 5.367 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001249/0.004134, allocations: 120.7 kB / 269.5 MB, free: 5.215 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.927e-05/0.004193, allocations: 52.77 kB / 269.5 MB, free: 5.145 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.528e-05/0.004228, allocations: 45.42 kB / 269.6 MB, free: 5.09 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.698e-06/0.004233, allocations: 4.047 kB / 269.6 MB, free: 5.086 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.321e-05/0.004276, allocations: 63.08 kB / 269.7 MB, free: 5.008 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 1.513e-06/0.004278, allocations: 0 / 269.7 MB, free: 5.008 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.000257/0.004535, allocations: 166.7 kB / 269.8 MB, free: 4.82 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.119e-05/0.004586, allocations: 81.11 kB / 269.9 MB, free: 4.723 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001171/0.004703, allocations: 169.9 kB / 270.1 MB, free: 4.539 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.591e-05/0.004719, allocations: 29.7 kB / 270.1 MB, free: 4.504 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.286e-05/0.004772, allocations: 130.9 kB / 270.2 MB, free: 4.371 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.678e-05/0.004799, allocations: 11.89 kB / 270.2 MB, free: 4.359 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.138e-05/0.00484, allocations: 23.38 kB / 270.3 MB, free: 4.328 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.004985, allocations: 0.4923 MB / 270.7 MB, free: 3.824 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.137e-05/0.005016, allocations: 33.7 kB / 270.8 MB, free: 3.785 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.384e-05/0.00504, allocations: 33.69 kB / 270.8 MB, free: 3.746 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.223e-05/0.005103, allocations: 79.03 kB / 270.9 MB, free: 3.652 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.005105, allocations: 3.938 kB / 270.9 MB, free: 3.648 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001264/0.005231, allocations: 117.1 kB / 271 MB, free: 3.516 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.474e-05/0.005266, allocations: 33.7 kB / 271 MB, free: 3.477 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.00527, allocations: 0 / 271 MB, free: 3.477 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.005284, allocations: 0 / 271 MB, free: 3.477 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.362e-06/0.005285, allocations: 256 / 271 MB, free: 3.477 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.00529, allocations: 0 / 271 MB, free: 3.477 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.175e-05/0.005312, allocations: 16 kB / 271.1 MB, free: 3.461 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.712e-06/0.005319, allocations: 0 / 271.1 MB, free: 3.461 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 9.707e-05/0.005416, allocations: 190.3 kB / 271.2 MB, free: 3.258 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.519e-05/0.005431, allocations: 11.95 kB / 271.3 MB, free: 3.246 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.557e-05/0.005446, allocations: 4 kB / 271.3 MB, free: 3.234 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.005448, allocations: 0 / 271.3 MB, free: 3.234 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.005452, allocations: 0 / 271.3 MB, free: 3.234 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.005458, allocations: 7.922 kB / 271.3 MB, free: 3.227 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.173e-05/0.005549, allocations: 120.6 kB / 271.4 MB, free: 3.074 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.00555, allocations: 0 / 271.4 MB, free: 3.074 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.403e-06/0.005552, allocations: 4 kB / 271.4 MB, free: 3.07 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.005556, allocations: 3.984 kB / 271.4 MB, free: 3.066 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.879e-06/0.005566, allocations: 4 kB / 271.4 MB, free: 3.062 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.005567, allocations: 0 / 271.4 MB, free: 3.062 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.005568, allocations: 0 / 271.4 MB, free: 3.062 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001803/0.005748, allocations: 179.9 kB / 271.6 MB, free: 2.852 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.178e-06/0.005758, allocations: 7.953 kB / 271.6 MB, free: 2.844 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.982e-05/0.005777, allocations: 0 / 271.6 MB, free: 2.844 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.704e-05/0.005795, allocations: 4 kB / 271.6 MB, free: 2.84 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.454e-05/0.005809, allocations: 0 / 271.6 MB, free: 2.84 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.719e-06/0.005814, allocations: 0 / 271.6 MB, free: 2.84 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.129e-05/0.005865, allocations: 139.2 kB / 271.7 MB, free: 2.703 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.005865, allocations: 0 / 271.7 MB, free: 2.703 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002414/0.006107, allocations: 11.94 kB / 271.7 MB, free: 2.691 MB / 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.0003084/0.006415, allocations: 132.2 kB / 271.9 MB, free: 2.566 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001502/0.006565, allocations: 142.5 kB / 272 MB, free: 2.398 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.006567, allocations: 0 / 272 MB, free: 2.398 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.718e-05/0.006624, allocations: 108.8 kB / 272.1 MB, free: 2.27 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001721/0.006796, allocations: 7.938 kB / 272.1 MB, free: 2.262 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002497/0.007046, allocations: 159.9 kB / 272.3 MB, free: 2.07 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.384e-05/0.00709, allocations: 59.34 kB / 272.3 MB, free: 1.992 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.121e-06/0.007096, allocations: 0 / 272.3 MB, free: 1.992 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.315e-05/0.007109, allocations: 8.5 kB / 272.3 MB, free: 1.984 MB / 250.7 MB Notification: Performance of SimCode: time 6.71e-07/0.00711, allocations: 0 / 272.3 MB, free: 1.984 MB / 250.7 MB Notification: Performance of Templates: time 0.002934/0.01004, allocations: 0.7074 MB / 273 MB, free: 1.289 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.7235202270094305]