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.0009075/0.0009075, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.0009777/0.0009777, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 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 0.9711/0.9711, allocations: 173.4 MB / 201.1 MB, free: 9.32 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 2.054e-06/2.054e-06, allocations: 0 / 267.9 MB, free: 6.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.887e-05/3.093e-05, allocations: 2.312 kB / 268 MB, free: 6.465 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.004547/0.004578, allocations: 498.6 kB / 268.4 MB, free: 5.977 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002458/0.004824, allocations: 65.19 kB / 268.5 MB, free: 5.914 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.233e-05/0.004856, allocations: 0 / 268.5 MB, free: 5.914 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.392e-05/0.00491, allocations: 3.938 kB / 268.5 MB, free: 5.91 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.968e-05/0.00499, allocations: 27.84 kB / 268.5 MB, free: 5.883 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001936/0.005183, allocations: 19.97 kB / 268.6 MB, free: 5.863 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.822e-05/0.005281, allocations: 19.98 kB / 268.6 MB, free: 5.844 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.471e-05/0.005326, allocations: 0 / 268.6 MB, free: 5.844 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.513e-05/0.005381, allocations: 11.98 kB / 268.6 MB, free: 5.832 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.338e-05/0.005465, allocations: 27.95 kB / 268.6 MB, free: 5.805 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.836e-05/0.005483, allocations: 0 / 268.6 MB, free: 5.805 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.231e-05/0.005535, allocations: 8 kB / 268.6 MB, free: 5.797 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.275e-05/0.005588, allocations: 11.88 kB / 268.6 MB, free: 5.785 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.139e-05/0.00562, allocations: 4 kB / 268.6 MB, free: 5.781 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001272/0.005747, allocations: 39.89 kB / 268.7 MB, free: 5.742 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.005749, allocations: 0 / 268.7 MB, free: 5.742 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.005751, allocations: 0 / 268.7 MB, free: 5.742 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.219e-06/0.005756, allocations: 0 / 268.7 MB, free: 5.742 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.0003635/0.00612, allocations: 390.2 kB / 269.1 MB, free: 5.316 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.006165, allocations: 8.922 kB / 269.1 MB, free: 5.309 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.303e-05/0.006208, allocations: 4.938 kB / 269.1 MB, free: 5.305 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.752e-05/0.006306, allocations: 112.6 kB / 269.2 MB, free: 5.168 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.243e-05/0.006318, allocations: 384 / 269.2 MB, free: 5.168 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.513e-05/0.006333, allocations: 4.375 kB / 269.2 MB, free: 5.164 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00011/0.006443, allocations: 67.95 kB / 269.2 MB, free: 5.086 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.006454, allocations: 4.188 kB / 269.3 MB, free: 5.082 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.006464, allocations: 384 / 269.3 MB, free: 5.082 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.657e-06/0.006473, allocations: 4.312 kB / 269.3 MB, free: 5.078 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.286e-05/0.006506, allocations: 41.62 kB / 269.3 MB, free: 5.031 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001228/0.006629, allocations: 116.7 kB / 269.4 MB, free: 4.883 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.465e-05/0.006693, allocations: 60.75 kB / 269.5 MB, free: 4.805 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.113e-05/0.006724, allocations: 41.42 kB / 269.5 MB, free: 4.754 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.348e-06/0.006729, allocations: 0 / 269.5 MB, free: 4.754 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003053/0.009782, allocations: 67.12 kB / 269.6 MB, free: 4.672 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 1.623e-06/0.009783, allocations: 0 / 269.6 MB, free: 4.672 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002594/0.01004, allocations: 162.7 kB / 269.7 MB, free: 4.488 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.623e-05/0.01009, allocations: 85.11 kB / 269.8 MB, free: 4.387 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001005/0.01019, allocations: 169.9 kB / 270 MB, free: 4.203 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.231e-05/0.0102, allocations: 25.7 kB / 270 MB, free: 4.172 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.945e-05/0.01025, allocations: 134.9 kB / 270.1 MB, free: 4.035 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.225e-05/0.01027, allocations: 7.891 kB / 270.2 MB, free: 4.027 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.123e-05/0.01031, allocations: 27.38 kB / 270.2 MB, free: 3.992 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.01046, allocations: 496.1 kB / 270.7 MB, free: 3.496 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.888e-05/0.01049, allocations: 33.7 kB / 270.7 MB, free: 3.457 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.435e-05/0.01051, allocations: 33.7 kB / 270.7 MB, free: 3.418 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.677e-05/0.01058, allocations: 83.02 kB / 270.8 MB, free: 3.32 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.01058, allocations: 4.062 kB / 270.8 MB, free: 3.316 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001275/0.01071, allocations: 117.1 kB / 270.9 MB, free: 3.184 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.579e-05/0.01074, allocations: 29.7 kB / 271 MB, free: 3.148 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.01075, allocations: 0 / 271 MB, free: 3.148 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/0.01077, allocations: 0 / 271 MB, free: 3.148 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.991e-06/0.01078, allocations: 4 kB / 271 MB, free: 3.145 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.541e-06/0.01078, allocations: 0 / 271 MB, free: 3.145 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.976e-05/0.0108, allocations: 8.125 kB / 271 MB, free: 3.137 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.317e-06/0.01081, allocations: 4 kB / 271 MB, free: 3.133 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 0.0002516/0.01106, allocations: 194.3 kB / 271.2 MB, free: 2.926 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.478e-05/0.01108, allocations: 11.98 kB / 271.2 MB, free: 2.914 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.011e-05/0.0111, allocations: 8 kB / 271.2 MB, free: 2.898 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.0111, allocations: 0 / 271.2 MB, free: 2.898 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.0111, allocations: 0 / 271.2 MB, free: 2.898 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.01111, allocations: 3.938 kB / 271.2 MB, free: 2.895 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.222e-05/0.01119, allocations: 124.6 kB / 271.3 MB, free: 2.738 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.01119, allocations: 0 / 271.3 MB, free: 2.738 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.32e-07/0.01119, allocations: 0 / 271.3 MB, free: 2.738 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.01119, allocations: 0 / 271.3 MB, free: 2.738 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.0112, allocations: 7.984 kB / 271.3 MB, free: 2.73 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.0112, allocations: 0 / 271.3 MB, free: 2.73 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.01121, allocations: 4 kB / 271.3 MB, free: 2.727 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001704/0.01138, allocations: 175.8 kB / 271.5 MB, free: 2.52 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.514e-06/0.01138, allocations: 3.953 kB / 271.5 MB, free: 2.516 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.014e-05/0.0114, allocations: 4 kB / 271.5 MB, free: 2.512 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.059e-05/0.01141, allocations: 0 / 271.5 MB, free: 2.512 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.282e-05/0.01143, allocations: 0 / 271.5 MB, free: 2.512 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.598e-06/0.01143, allocations: 4.188 kB / 271.5 MB, free: 2.508 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.641e-05/0.01148, allocations: 131.2 kB / 271.6 MB, free: 2.379 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01148, allocations: 0 / 271.6 MB, free: 2.379 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002365/0.01171, allocations: 15.94 kB / 271.6 MB, free: 2.363 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.0003014/0.01202, allocations: 147.2 kB / 271.8 MB, free: 2.227 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001516/0.01217, allocations: 142.5 kB / 271.9 MB, free: 2.059 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.01217, allocations: 0 / 271.9 MB, free: 2.059 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.202e-05/0.01222, allocations: 100.8 kB / 272 MB, free: 1.938 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001486/0.01237, allocations: 8 kB / 272 MB, free: 1.93 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002538/0.01262, allocations: 155.9 kB / 272.2 MB, free: 1.742 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.532e-05/0.01266, allocations: 59.48 kB / 272.2 MB, free: 1.664 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.985e-06/0.01267, allocations: 3.984 kB / 272.2 MB, free: 1.66 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.394e-05/0.01268, allocations: 8.5 kB / 272.3 MB, free: 1.652 MB / 250.7 MB Notification: Performance of SimCode: time 6.01e-07/0.01268, allocations: 4 kB / 272.3 MB, free: 1.648 MB / 250.7 MB Notification: Performance of Templates: time 0.002504/0.01519, allocations: 0.7027 MB / 273 MB, free: 0.957 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.8377286889590323]