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.001751/0.001751, allocations: 84.77 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001492/0.001492, allocations: 165.3 kB / 23.96 MB, free: 4.164 MB / 14.72 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 1.431/1.431, allocations: 177.1 MB / 204.3 MB, free: 9.191 MB / 190.1 MB " [Timeout remaining time 178] 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.312e-06/1.312e-06, allocations: 0 / 325 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.247e-05/2.378e-05, allocations: 2.281 kB / 325 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001276/0.0013, allocations: 491 kB / 325.5 MB, free: 280 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002151/0.001515, allocations: 64.73 kB / 325.6 MB, free: 240 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.552e-05/0.00155, allocations: 3.938 kB / 325.6 MB, free: 236 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.855e-05/0.001589, allocations: 1.125 kB / 325.6 MB, free: 236 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.853e-05/0.001658, allocations: 17.16 kB / 325.6 MB, free: 232 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000157/0.001815, allocations: 21.42 kB / 325.6 MB, free: 220 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.256e-05/0.001907, allocations: 28.05 kB / 325.6 MB, free: 208 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.804e-05/0.001945, allocations: 2.703 kB / 325.6 MB, free: 208 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.437e-05/0.00199, allocations: 19.44 kB / 325.7 MB, free: 200 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.756e-05/0.002077, allocations: 26.86 kB / 325.7 MB, free: 196 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.77e-05/0.002095, allocations: 1.469 kB / 325.7 MB, free: 196 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.956e-05/0.002134, allocations: 4.656 kB / 325.7 MB, free: 196 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.794e-05/0.002172, allocations: 5.391 kB / 325.7 MB, free: 196 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.372e-05/0.002206, allocations: 6.156 kB / 325.7 MB, free: 192 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.772e-05/0.002304, allocations: 31.2 kB / 325.7 MB, free: 180 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.013e-06/0.002306, allocations: 0 / 325.7 MB, free: 180 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.051e-06/0.002307, allocations: 1.344 kB / 325.7 MB, free: 180 kB / 286.1 MB Notification: Performance of Transformations before backend: time 3.437e-06/0.00231, allocations: 0 / 325.7 MB, free: 180 kB / 286.1 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.0003345/0.002645, allocations: 292.8 kB / 326 MB, free: 15.87 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.002679, allocations: 9.781 kB / 326 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.729e-05/0.002716, allocations: 7.328 kB / 326 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001095/0.002825, allocations: 105.9 kB / 326.1 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.002839, allocations: 1.906 kB / 326.1 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.108e-06/0.002848, allocations: 1.781 kB / 326.1 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001495/0.002997, allocations: 93.39 kB / 326.2 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.003005, allocations: 1.125 kB / 326.2 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.396e-06/0.003014, allocations: 1.531 kB / 326.2 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.003018, allocations: 384 / 326.2 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.56e-05/0.003083, allocations: 65.84 kB / 326.3 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001253/0.003209, allocations: 101 kB / 326.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.589e-05/0.003304, allocations: 73.52 kB / 326.5 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.571e-05/0.00337, allocations: 66.41 kB / 326.5 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.075e-05/0.003381, allocations: 3.984 kB / 326.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.989e-05/0.003431, allocations: 60.52 kB / 326.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.012e-06/0.003432, allocations: 3.938 kB / 326.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003524/0.003784, allocations: 241.1 kB / 326.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.547e-05/0.00385, allocations: 79.73 kB / 326.9 MB, free: 15.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001159/0.003966, allocations: 118.8 kB / 327 MB, free: 14.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.005e-05/0.003986, allocations: 30.86 kB / 327.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.794e-05/0.004034, allocations: 82.28 kB / 327.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.454e-05/0.004058, allocations: 9.969 kB / 327.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.638e-05/0.004094, allocations: 20.48 kB / 327.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.004256, allocations: 314.5 kB / 327.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.051e-05/0.004316, allocations: 61.62 kB / 327.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.948e-05/0.004366, allocations: 53.97 kB / 327.6 MB, free: 14.45 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001204/0.004486, allocations: 125.6 kB / 327.7 MB, free: 14.37 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.828e-06/0.00449, allocations: 4 kB / 327.7 MB, free: 14.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002034/0.004693, allocations: 180.2 kB / 327.9 MB, free: 14.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.594e-05/0.004729, allocations: 33.38 kB / 327.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.004733, allocations: 5.5 kB / 327.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.004747, allocations: 0.7031 kB / 327.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.41e-07/0.004748, allocations: 0 / 327.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.004752, allocations: 1.5 kB / 327.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.04e-05/0.004772, allocations: 5.125 kB / 327.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.926e-06/0.004781, allocations: 3.156 kB / 327.9 MB, free: 14.23 MB / 302.1 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 0.0001116/0.004893, allocations: 146.9 kB / 328.1 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.615e-05/0.004909, allocations: 7.812 kB / 328.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.453e-05/0.004923, allocations: 6.844 kB / 328.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.004925, allocations: 0 / 328.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.004929, allocations: 4 kB / 328.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.004934, allocations: 5.422 kB / 328.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001054/0.005039, allocations: 102.6 kB / 328.2 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.00504, allocations: 0.6875 kB / 328.2 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.37e-06/0.005046, allocations: 5.703 kB / 328.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.472e-06/0.005047, allocations: 0 / 328.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.381e-05/0.005061, allocations: 6.891 kB / 328.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.005062, allocations: 1.281 kB / 328.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.005063, allocations: 3.938 kB / 328.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002381/0.005301, allocations: 231.6 kB / 328.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.652e-06/0.005308, allocations: 2.766 kB / 328.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.699e-05/0.005325, allocations: 5.75 kB / 328.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.402e-05/0.005339, allocations: 1.891 kB / 328.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.197e-05/0.005351, allocations: 1.125 kB / 328.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.041e-06/0.005357, allocations: 2.812 kB / 328.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.256e-05/0.005419, allocations: 95.23 kB / 328.6 MB, free: 13.69 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.005419, allocations: 0 / 328.6 MB, free: 13.69 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002007/0.00562, allocations: 13.12 kB / 328.6 MB, free: 13.69 MB / 302.1 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.0003231/0.005943, allocations: 138.8 kB / 328.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000215/0.006158, allocations: 183.8 kB / 328.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.00616, allocations: 0 / 328.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.358e-05/0.006254, allocations: 116.8 kB / 329 MB, free: 13.35 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001334/0.006387, allocations: 3.812 kB / 329 MB, free: 13.35 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002837/0.006671, allocations: 171.3 kB / 329.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.93e-05/0.00673, allocations: 63.48 kB / 329.2 MB, free: 13.13 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.25e-06/0.006735, allocations: 0.9375 kB / 329.2 MB, free: 13.13 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.275e-05/0.006748, allocations: 13.78 kB / 329.3 MB, free: 13.12 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.006748, allocations: 0 / 329.3 MB, free: 13.12 MB / 302.1 MB Notification: Performance of Templates: time 0.003406/0.01015, allocations: 0.6898 MB / 329.9 MB, free: 13 MB / 302.1 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.114275623112917]