Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001869/0.001869, allocations: 88.39 kB / 21.44 MB, free: 276 kB / 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.002192/0.002192, allocations: 163.4 kB / 24.71 MB, free: 3.527 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.493/1.493, allocations: 158.6 MB / 186.5 MB, free: 6.387 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.082e-06/1.082e-06, allocations: 0 / 298.9 MB, free: 8.855 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.995e-05/2.103e-05, allocations: 2.281 kB / 298.9 MB, free: 8.852 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001336/0.001357, allocations: 0.4908 MB / 299.4 MB, free: 8.359 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002423/0.001599, allocations: 55.81 kB / 299.5 MB, free: 8.305 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.983e-05/0.001629, allocations: 0 / 299.5 MB, free: 8.305 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.919e-05/0.001658, allocations: 4 kB / 299.5 MB, free: 8.301 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.871e-05/0.001747, allocations: 19.95 kB / 299.5 MB, free: 8.281 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001477/0.001894, allocations: 19.86 kB / 299.5 MB, free: 8.262 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001074/0.002002, allocations: 23.92 kB / 299.5 MB, free: 8.238 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.905e-05/0.002051, allocations: 7.984 kB / 299.5 MB, free: 8.23 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.35e-05/0.002094, allocations: 11.98 kB / 299.5 MB, free: 8.219 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.245e-05/0.002177, allocations: 27.97 kB / 299.6 MB, free: 8.191 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.708e-05/0.002194, allocations: 0 / 299.6 MB, free: 8.191 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.316e-05/0.002237, allocations: 7.938 kB / 299.6 MB, free: 8.184 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.909e-05/0.002286, allocations: 11.98 kB / 299.6 MB, free: 8.172 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.97e-05/0.002316, allocations: 7.938 kB / 299.6 MB, free: 8.164 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001152/0.002431, allocations: 19.97 kB / 299.6 MB, free: 8.145 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.783e-06/0.002433, allocations: 0 / 299.6 MB, free: 8.145 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.61e-07/0.002433, allocations: 0 / 299.6 MB, free: 8.145 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.002442, allocations: 0 / 299.6 MB, free: 8.145 MB / 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.000419/0.002861, allocations: 291.9 kB / 299.9 MB, free: 7.82 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.002902, allocations: 15.98 kB / 299.9 MB, free: 7.805 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.647e-05/0.002938, allocations: 8.891 kB / 299.9 MB, free: 7.797 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001156/0.003054, allocations: 109.8 kB / 300 MB, free: 7.664 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.192e-05/0.003066, allocations: 4.375 kB / 300 MB, free: 7.66 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.436e-05/0.00308, allocations: 4.312 kB / 300 MB, free: 7.656 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001486/0.003229, allocations: 83.95 kB / 300.1 MB, free: 7.562 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.003237, allocations: 192 / 300.1 MB, free: 7.562 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.816e-06/0.003246, allocations: 384 / 300.1 MB, free: 7.562 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.003251, allocations: 384 / 300.1 MB, free: 7.562 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.585e-05/0.003316, allocations: 65.61 kB / 300.2 MB, free: 7.492 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001296/0.003446, allocations: 101.3 kB / 300.3 MB, free: 7.363 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.811e-05/0.003544, allocations: 72.31 kB / 300.4 MB, free: 7.277 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.308e-05/0.003607, allocations: 74.48 kB / 300.4 MB, free: 7.195 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.298e-06/0.003612, allocations: 0 / 300.4 MB, free: 7.195 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.127e-05/0.003673, allocations: 64.25 kB / 300.5 MB, free: 7.117 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 9.22e-07/0.003674, allocations: 0 / 300.5 MB, free: 7.117 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003446/0.004018, allocations: 242.7 kB / 300.7 MB, free: 6.855 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.1e-05/0.004079, allocations: 81.11 kB / 300.8 MB, free: 6.758 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.004192, allocations: 113.8 kB / 300.9 MB, free: 6.637 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.937e-05/0.004211, allocations: 25.7 kB / 300.9 MB, free: 6.605 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.054e-05/0.004262, allocations: 88.12 kB / 301 MB, free: 6.516 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.918e-05/0.004281, allocations: 11.98 kB / 301 MB, free: 6.504 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.459e-05/0.004316, allocations: 13.72 kB / 301.1 MB, free: 6.484 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.004484, allocations: 318.8 kB / 301.4 MB, free: 6.164 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6e-05/0.004544, allocations: 57.62 kB / 301.4 MB, free: 6.102 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.246e-05/0.004597, allocations: 61.67 kB / 301.5 MB, free: 6.035 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001257/0.004722, allocations: 116.2 kB / 301.6 MB, free: 5.906 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.004724, allocations: 256 / 301.6 MB, free: 5.906 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001991/0.004923, allocations: 177.1 kB / 301.8 MB, free: 5.715 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.57e-05/0.004969, allocations: 33.7 kB / 301.8 MB, free: 5.676 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.004977, allocations: 4 kB / 301.8 MB, free: 5.672 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.147e-05/0.004999, allocations: 64 / 301.8 MB, free: 5.672 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.076e-06/0.005002, allocations: 7.984 kB / 301.8 MB, free: 5.664 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.005007, allocations: 0 / 301.8 MB, free: 5.664 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.395e-05/0.005031, allocations: 19.77 kB / 301.8 MB, free: 5.645 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.005041, allocations: 4 kB / 301.8 MB, free: 5.641 MB / 286.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.000132/0.005174, allocations: 151.5 kB / 302 MB, free: 5.477 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.108e-05/0.005185, allocations: 0 / 302 MB, free: 5.477 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.613e-05/0.005201, allocations: 8 kB / 302 MB, free: 5.469 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.005202, allocations: 0 / 302 MB, free: 5.469 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.005206, allocations: 0 / 302 MB, free: 5.469 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.005211, allocations: 3.938 kB / 302 MB, free: 5.465 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001154/0.005327, allocations: 113.3 kB / 302.1 MB, free: 5.324 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.005327, allocations: 0 / 302.1 MB, free: 5.324 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.005328, allocations: 0 / 302.1 MB, free: 5.324 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.005329, allocations: 0 / 302.1 MB, free: 5.324 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.473e-05/0.005344, allocations: 7.984 kB / 302.1 MB, free: 5.316 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.005345, allocations: 0 / 302.1 MB, free: 5.316 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.005346, allocations: 3.938 kB / 302.1 MB, free: 5.312 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002583/0.005604, allocations: 228.4 kB / 302.3 MB, free: 5.059 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.17e-06/0.005609, allocations: 0 / 302.3 MB, free: 5.059 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.991e-05/0.005629, allocations: 7.984 kB / 302.4 MB, free: 5.051 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.194e-05/0.005641, allocations: 0 / 302.4 MB, free: 5.051 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.493e-05/0.005656, allocations: 8.031 kB / 302.4 MB, free: 5.043 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.562e-06/0.005663, allocations: 4 kB / 302.4 MB, free: 5.039 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.643e-05/0.005719, allocations: 87.22 kB / 302.4 MB, free: 4.953 MB / 286.1 MB Notification: Performance of sort global known variables: time 8e-08/0.005719, allocations: 0 / 302.4 MB, free: 4.953 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001941/0.005913, allocations: 15.92 kB / 302.5 MB, free: 4.938 MB / 286.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.0003205/0.006234, allocations: 138.2 kB / 302.6 MB, free: 4.797 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002374/0.006471, allocations: 178.8 kB / 302.8 MB, free: 4.598 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.006473, allocations: 3.938 kB / 302.8 MB, free: 4.594 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 9.838e-05/0.006571, allocations: 121.1 kB / 302.9 MB, free: 4.457 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000138/0.006709, allocations: 0 / 302.9 MB, free: 4.457 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002946/0.007004, allocations: 166.7 kB / 303.1 MB, free: 4.262 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.64e-05/0.00707, allocations: 67.2 kB / 303.1 MB, free: 4.176 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.971e-06/0.007076, allocations: 4 kB / 303.1 MB, free: 4.172 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.395e-05/0.00709, allocations: 8.5 kB / 303.1 MB, free: 4.164 MB / 286.1 MB Notification: Performance of SimCode: time 2.9e-07/0.00709, allocations: 0 / 303.1 MB, free: 4.164 MB / 286.1 MB Notification: Performance of Templates: time 0.003299/0.01039, allocations: 0.685 MB / 303.8 MB, free: 3.477 MB / 286.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.214217606931925]