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.0008018/0.0008018, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.003018/0.003018, allocations: 160.5 kB / 24.7 MB, free: 9.43 MB / 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.8618/0.8618, allocations: 177.1 MB / 205 MB, free: 5.723 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.192e-06/1.192e-06, allocations: 0 / 325.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.956e-05/2.075e-05, allocations: 4.531 kB / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.000955/0.0009758, allocations: 496.9 kB / 326.3 MB, free: 14.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002027/0.001178, allocations: 70.67 kB / 326.3 MB, free: 14.9 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.867e-05/0.001207, allocations: 0 / 326.3 MB, free: 14.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.865e-05/0.001236, allocations: 0 / 326.3 MB, free: 14.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.392e-05/0.00131, allocations: 15.97 kB / 326.4 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001475/0.001457, allocations: 19.92 kB / 326.4 MB, free: 14.87 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.606e-05/0.001543, allocations: 15.98 kB / 326.4 MB, free: 14.85 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.21e-05/0.001585, allocations: 4 kB / 326.4 MB, free: 14.85 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.222e-05/0.001628, allocations: 23.92 kB / 326.4 MB, free: 14.82 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.747e-05/0.001695, allocations: 27.95 kB / 326.5 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.536e-05/0.00171, allocations: 0 / 326.5 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.005e-05/0.00175, allocations: 4 kB / 326.5 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.126e-05/0.001792, allocations: 7.984 kB / 326.5 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.775e-05/0.001819, allocations: 8 kB / 326.5 MB, free: 14.78 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001042/0.001924, allocations: 31.84 kB / 326.5 MB, free: 14.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.013e-06/0.001926, allocations: 0 / 326.5 MB, free: 14.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.001926, allocations: 0 / 326.5 MB, free: 14.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.336e-06/0.00193, allocations: 0 / 326.5 MB, free: 14.75 MB / 298.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.0002756/0.002205, allocations: 292 kB / 326.8 MB, free: 14.42 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.002238, allocations: 8.031 kB / 326.8 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.311e-05/0.002271, allocations: 8.891 kB / 326.8 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.708e-05/0.002348, allocations: 105.8 kB / 326.9 MB, free: 14.28 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.00236, allocations: 384 / 326.9 MB, free: 14.28 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.967e-06/0.002369, allocations: 4.375 kB / 326.9 MB, free: 14.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001103/0.002479, allocations: 91.88 kB / 327 MB, free: 14.17 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.002486, allocations: 192 / 327 MB, free: 14.17 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.316e-06/0.002494, allocations: 384 / 327 MB, free: 14.17 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.002499, allocations: 384 / 327 MB, free: 14.17 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.923e-05/0.002538, allocations: 61.62 kB / 327.1 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.983e-05/0.002638, allocations: 109.3 kB / 327.2 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.905e-05/0.002697, allocations: 72.31 kB / 327.2 MB, free: 13.88 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.602e-05/0.002733, allocations: 66.56 kB / 327.3 MB, free: 13.81 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.434e-06/0.002741, allocations: 0 / 327.3 MB, free: 13.81 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.58e-05/0.002776, allocations: 64.19 kB / 327.4 MB, free: 13.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 5.61e-07/0.002777, allocations: 4 kB / 327.4 MB, free: 13.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.000238/0.003015, allocations: 234.7 kB / 327.6 MB, free: 13.47 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.811e-05/0.003053, allocations: 85.11 kB / 327.7 MB, free: 13.37 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.323e-05/0.003116, allocations: 113.8 kB / 327.8 MB, free: 13.25 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.796e-06/0.003125, allocations: 29.64 kB / 327.8 MB, free: 13.21 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.879e-05/0.003154, allocations: 88.17 kB / 327.9 MB, free: 13.12 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.774e-05/0.003171, allocations: 15.88 kB / 327.9 MB, free: 13.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.492e-05/0.003196, allocations: 17.72 kB / 327.9 MB, free: 13.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.437e-05/0.003271, allocations: 314.8 kB / 328.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.174e-05/0.003303, allocations: 53.69 kB / 328.3 MB, free: 12.71 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.95e-05/0.003332, allocations: 57.69 kB / 328.4 MB, free: 12.65 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.234e-05/0.003404, allocations: 120.2 kB / 328.5 MB, free: 12.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.003407, allocations: 0 / 328.5 MB, free: 12.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001092/0.003516, allocations: 185.2 kB / 328.7 MB, free: 12.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/0.003539, allocations: 29.7 kB / 328.7 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.003543, allocations: 0 / 328.7 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.003554, allocations: 8.062 kB / 328.7 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.513e-06/0.003556, allocations: 3.984 kB / 328.7 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.003561, allocations: 0 / 328.7 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.306e-05/0.003574, allocations: 3.938 kB / 328.7 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.845e-06/0.003582, allocations: 8.234 kB / 328.7 MB, free: 12.26 MB / 298.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.249e-05/0.003644, allocations: 147.5 kB / 328.9 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.015e-06/0.003652, allocations: 11.94 kB / 328.9 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.899e-06/0.003662, allocations: 4 kB / 328.9 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-06/0.003664, allocations: 0 / 328.9 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.003668, allocations: 0 / 328.9 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.003673, allocations: 11.88 kB / 328.9 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.916e-05/0.003732, allocations: 113.3 kB / 329 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-07/0.003733, allocations: 0 / 329 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.4e-07/0.003733, allocations: 0 / 329 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.003734, allocations: 0 / 329 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.071e-06/0.00374, allocations: 4 kB / 329 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-07/0.003741, allocations: 0 / 329 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.003741, allocations: 0 / 329 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001375/0.003879, allocations: 228.4 kB / 329.2 MB, free: 11.67 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.38e-06/0.003884, allocations: 0 / 329.2 MB, free: 11.67 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.051e-05/0.003895, allocations: 4 kB / 329.2 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.973e-06/0.003902, allocations: 4.031 kB / 329.2 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.259e-05/0.003914, allocations: 7.984 kB / 329.2 MB, free: 11.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-06/0.003917, allocations: 3.938 kB / 329.2 MB, free: 11.65 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.044e-05/0.003947, allocations: 91.22 kB / 329.3 MB, free: 11.56 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.003947, allocations: 0 / 329.3 MB, free: 11.56 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000128/0.004075, allocations: 15.94 kB / 329.3 MB, free: 11.54 MB / 298.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.000219/0.004294, allocations: 144 kB / 329.5 MB, free: 11.41 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001344/0.004429, allocations: 178.8 kB / 329.7 MB, free: 11.21 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.00443, allocations: 0 / 329.7 MB, free: 11.21 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.739e-05/0.004478, allocations: 117.1 kB / 329.8 MB, free: 11.08 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.687e-05/0.004575, allocations: 4 kB / 329.8 MB, free: 11.08 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002121/0.004787, allocations: 200.8 kB / 330 MB, free: 10.84 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.857e-05/0.004825, allocations: 63.34 kB / 330 MB, free: 10.76 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.137e-05/0.004837, allocations: 12.48 kB / 330 MB, free: 10.75 MB / 298.7 MB Notification: Performance of SimCode: time 4.41e-07/0.004837, allocations: 0 / 330 MB, free: 10.75 MB / 298.7 MB Notification: Performance of Templates: time 0.001487/0.006324, allocations: 0.6971 MB / 330.7 MB, free: 10.06 MB / 298.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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.272263661958277]