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.0008392/0.0008392, allocations: 88.28 kB / 21.44 MB, free: 3.129 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.004563/0.004563, allocations: 152.2 kB / 24.69 MB, free: 8.922 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.9215/0.9215, allocations: 177 MB / 204.9 MB, free: 5.77 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.512e-06/1.512e-06, allocations: 0 / 325.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.888e-05/2.04e-05, allocations: 2.281 kB / 325.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0009023/0.0009227, allocations: 486.1 kB / 326.2 MB, free: 14.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002041/0.001127, allocations: 70.66 kB / 326.3 MB, free: 14.88 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.076e-05/0.001158, allocations: 0 / 326.3 MB, free: 14.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.832e-05/0.001186, allocations: 0 / 326.3 MB, free: 14.88 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.556e-05/0.001261, allocations: 15.92 kB / 326.3 MB, free: 14.87 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001429/0.001404, allocations: 23.97 kB / 326.3 MB, free: 14.84 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.797e-05/0.001492, allocations: 15.98 kB / 326.3 MB, free: 14.83 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.851e-05/0.001531, allocations: 4 kB / 326.3 MB, free: 14.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.026e-05/0.001571, allocations: 23.91 kB / 326.4 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.512e-05/0.001636, allocations: 23.98 kB / 326.4 MB, free: 14.78 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.567e-05/0.001652, allocations: 0 / 326.4 MB, free: 14.78 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.119e-05/0.001693, allocations: 7.984 kB / 326.4 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.273e-05/0.001736, allocations: 4 kB / 326.4 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.271e-05/0.001768, allocations: 7.938 kB / 326.4 MB, free: 14.76 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.854e-05/0.001867, allocations: 31.84 kB / 326.4 MB, free: 14.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.743e-06/0.001869, allocations: 4 kB / 326.4 MB, free: 14.72 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.00187, allocations: 0 / 326.4 MB, free: 14.72 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.636e-06/0.001873, allocations: 0 / 326.4 MB, free: 14.72 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.0002887/0.002162, allocations: 288 kB / 326.7 MB, free: 14.4 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.002195, allocations: 11.98 kB / 326.7 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.718e-05/0.002233, allocations: 16.88 kB / 326.8 MB, free: 14.38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.829e-05/0.002311, allocations: 105.8 kB / 326.9 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.07e-05/0.002322, allocations: 384 / 326.9 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.716e-06/0.00233, allocations: 384 / 326.9 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001084/0.002439, allocations: 91.94 kB / 326.9 MB, free: 14.14 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.002446, allocations: 192 / 326.9 MB, free: 14.14 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.075e-06/0.002454, allocations: 384 / 326.9 MB, free: 14.14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.002458, allocations: 384 / 326.9 MB, free: 14.14 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.015e-05/0.002498, allocations: 65.56 kB / 327 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.924e-05/0.002597, allocations: 105.3 kB / 327.1 MB, free: 13.94 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.199e-05/0.002659, allocations: 76.31 kB / 327.2 MB, free: 13.85 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.876e-05/0.002708, allocations: 66.61 kB / 327.3 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.805e-06/0.002716, allocations: 0 / 327.3 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.565e-05/0.002752, allocations: 56.27 kB / 327.3 MB, free: 13.71 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 6.61e-07/0.002752, allocations: 3.938 kB / 327.3 MB, free: 13.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002518/0.003004, allocations: 242.6 kB / 327.5 MB, free: 13.44 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.822e-05/0.003052, allocations: 85.09 kB / 327.6 MB, free: 13.34 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.191e-05/0.003124, allocations: 117.8 kB / 327.7 MB, free: 13.21 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.094e-05/0.003135, allocations: 25.7 kB / 327.8 MB, free: 13.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.12e-05/0.003166, allocations: 88.12 kB / 327.9 MB, free: 13.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.807e-05/0.003184, allocations: 7.891 kB / 327.9 MB, free: 13.09 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.034e-05/0.003215, allocations: 25.75 kB / 327.9 MB, free: 13.05 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.43e-05/0.003289, allocations: 314.8 kB / 328.2 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.501e-05/0.003324, allocations: 61.62 kB / 328.3 MB, free: 12.67 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.845e-05/0.003353, allocations: 53.69 kB / 328.3 MB, free: 12.61 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.211e-05/0.003425, allocations: 120.2 kB / 328.4 MB, free: 12.48 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.003427, allocations: 0 / 328.4 MB, free: 12.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001168/0.003544, allocations: 185 kB / 328.6 MB, free: 12.28 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.726e-05/0.003571, allocations: 33.69 kB / 328.6 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.003575, allocations: 0 / 328.6 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.003589, allocations: 4 kB / 328.6 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.02e-07/0.00359, allocations: 4.062 kB / 328.6 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.003595, allocations: 0 / 328.6 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.364e-05/0.003609, allocations: 3.938 kB / 328.7 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.705e-06/0.003617, allocations: 4 kB / 328.7 MB, free: 12.23 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.976e-05/0.003686, allocations: 147.5 kB / 328.8 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.863e-06/0.003693, allocations: 8.141 kB / 328.8 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.089e-05/0.003704, allocations: 4 kB / 328.8 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.003706, allocations: 3.984 kB / 328.8 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.00371, allocations: 0 / 328.8 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.003713, allocations: 3.938 kB / 328.8 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.63e-05/0.003769, allocations: 109.3 kB / 328.9 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.21e-07/0.00377, allocations: 4 kB / 328.9 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.4e-07/0.00377, allocations: 0 / 328.9 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.92e-07/0.003771, allocations: 0 / 328.9 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.885e-06/0.003779, allocations: 4 kB / 328.9 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.41e-07/0.003779, allocations: 256 / 328.9 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.71e-07/0.00378, allocations: 0 / 328.9 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001452/0.003925, allocations: 236.3 kB / 329.2 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.921e-06/0.003931, allocations: 3.984 kB / 329.2 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.136e-05/0.003942, allocations: 7.938 kB / 329.2 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.282e-06/0.003948, allocations: 0 / 329.2 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.237e-05/0.003961, allocations: 4 kB / 329.2 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.756e-06/0.003963, allocations: 4.031 kB / 329.2 MB, free: 11.62 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.994e-05/0.003993, allocations: 91.27 kB / 329.3 MB, free: 11.53 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.003993, allocations: 0 / 329.3 MB, free: 11.53 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001262/0.00412, allocations: 15.94 kB / 329.3 MB, free: 11.51 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.0002126/0.004332, allocations: 124.8 kB / 329.4 MB, free: 11.4 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001351/0.004467, allocations: 182.8 kB / 329.6 MB, free: 11.2 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.004469, allocations: 0 / 329.6 MB, free: 11.2 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.155e-05/0.00452, allocations: 125 kB / 329.7 MB, free: 11.05 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000106/0.004626, allocations: 4 kB / 329.7 MB, free: 11.05 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002221/0.004848, allocations: 196.2 kB / 329.9 MB, free: 10.82 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.251e-05/0.004891, allocations: 67.33 kB / 330 MB, free: 10.73 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.218e-05/0.004903, allocations: 8.5 kB / 330 MB, free: 10.73 MB / 298.7 MB Notification: Performance of SimCode: time 7.22e-07/0.004904, allocations: 0 / 330 MB, free: 10.73 MB / 298.7 MB Notification: Performance of Templates: time 0.001513/0.006417, allocations: 0.7017 MB / 330.7 MB, free: 10.03 MB / 298.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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.226851301267743]