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.001345/0.001345, allocations: 81.97 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001437/0.001437, allocations: 151.1 kB / 23.94 MB, free: 4.164 MB / 14.72 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 1.432/1.432, allocations: 173.4 MB / 200.4 MB, free: 12.88 MB / 190.1 MB " [Timeout remaining time 178] 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 1.243e-06/1.243e-06, allocations: 0 / 318.9 MB, free: 3.578 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.857e-05/2.982e-05, allocations: 2.281 kB / 318.9 MB, free: 3.574 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001322/0.001352, allocations: 479.3 kB / 319.4 MB, free: 3.297 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002371/0.001589, allocations: 64.5 kB / 319.4 MB, free: 3.258 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.314e-05/0.001622, allocations: 0 / 319.4 MB, free: 3.258 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.149e-05/0.001664, allocations: 0.7031 kB / 319.4 MB, free: 3.258 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.546e-05/0.001749, allocations: 16.97 kB / 319.4 MB, free: 3.254 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001826/0.001932, allocations: 22.53 kB / 319.5 MB, free: 3.242 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001237/0.002055, allocations: 27.47 kB / 319.5 MB, free: 3.23 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.297e-05/0.002118, allocations: 3.094 kB / 319.5 MB, free: 3.23 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.516e-05/0.002193, allocations: 14.53 kB / 319.5 MB, free: 3.227 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001277/0.002321, allocations: 26.78 kB / 319.5 MB, free: 3.223 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.645e-05/0.002348, allocations: 1.344 kB / 319.5 MB, free: 3.223 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.193e-05/0.00241, allocations: 10.44 kB / 319.5 MB, free: 3.219 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.78e-05/0.002467, allocations: 3.203 kB / 319.5 MB, free: 3.219 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.265e-05/0.00251, allocations: 8.391 kB / 319.5 MB, free: 3.215 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001287/0.002639, allocations: 29.2 kB / 319.6 MB, free: 3.203 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.002641, allocations: 1.281 kB / 319.6 MB, free: 3.203 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.71e-07/0.002642, allocations: 3.938 kB / 319.6 MB, free: 3.199 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.002647, allocations: 0 / 319.6 MB, free: 3.199 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.000369/0.003016, allocations: 294.2 kB / 319.9 MB, free: 2.891 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.003064, allocations: 10.55 kB / 319.9 MB, free: 2.891 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.397e-05/0.003108, allocations: 3.219 kB / 319.9 MB, free: 2.891 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.091e-05/0.003198, allocations: 114.3 kB / 320 MB, free: 2.758 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.003218, allocations: 5.844 kB / 320 MB, free: 2.754 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.253e-05/0.00323, allocations: 1.875 kB / 320 MB, free: 2.754 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001592/0.003389, allocations: 89.19 kB / 320.1 MB, free: 2.688 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.003401, allocations: 0.75 kB / 320.1 MB, free: 2.688 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.003412, allocations: 1.562 kB / 320.1 MB, free: 2.688 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.003417, allocations: 384 / 320.1 MB, free: 2.688 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.454e-05/0.003481, allocations: 62.47 kB / 320.1 MB, free: 2.648 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001115/0.003593, allocations: 104.9 kB / 320.3 MB, free: 2.523 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.55e-05/0.003688, allocations: 81.11 kB / 320.3 MB, free: 2.457 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.83e-05/0.003746, allocations: 62.42 kB / 320.4 MB, free: 2.414 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.409e-05/0.00376, allocations: 4.703 kB / 320.4 MB, free: 2.41 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.0038, allocations: 60.31 kB / 320.5 MB, free: 2.34 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.332e-06/0.003802, allocations: 0 / 320.5 MB, free: 2.34 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003855/0.004187, allocations: 236 kB / 320.7 MB, free: 2.207 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.609e-05/0.004233, allocations: 83.77 kB / 320.8 MB, free: 2.109 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/0.004338, allocations: 122.5 kB / 320.9 MB, free: 1.996 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.079e-05/0.004348, allocations: 26.92 kB / 320.9 MB, free: 1.965 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.162e-05/0.00438, allocations: 82.89 kB / 321 MB, free: 1.883 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.704e-05/0.004407, allocations: 10.39 kB / 321 MB, free: 1.875 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.729e-05/0.004444, allocations: 20.08 kB / 321 MB, free: 1.855 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 6.065e-05/0.004505, allocations: 315 kB / 321.3 MB, free: 1.543 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.46e-05/0.00457, allocations: 61.61 kB / 321.4 MB, free: 1.504 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.234e-05/0.004612, allocations: 53.09 kB / 321.4 MB, free: 1.473 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.234e-05/0.004704, allocations: 122.3 kB / 321.6 MB, free: 1.395 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.004706, allocations: 0 / 321.6 MB, free: 1.395 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001618/0.004868, allocations: 183.3 kB / 321.7 MB, free: 1.289 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.155e-05/0.0049, allocations: 38.06 kB / 321.8 MB, free: 1.258 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.004903, allocations: 3.938 kB / 321.8 MB, free: 1.254 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.004921, allocations: 1.5 kB / 321.8 MB, free: 1.254 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.403e-06/0.004922, allocations: 1.031 kB / 321.8 MB, free: 1.254 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.004926, allocations: 0 / 321.8 MB, free: 1.254 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.039e-05/0.004947, allocations: 9.406 kB / 321.8 MB, free: 1.246 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.849e-06/0.004957, allocations: 2.875 kB / 321.8 MB, free: 1.246 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 6.953e-05/0.005026, allocations: 146.7 kB / 321.9 MB, free: 1.098 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.409e-05/0.00504, allocations: 7.797 kB / 321.9 MB, free: 1.094 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.348e-05/0.005054, allocations: 6.859 kB / 322 MB, free: 1.082 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.005055, allocations: 3.938 kB / 322 MB, free: 1.078 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.005061, allocations: 2.047 kB / 322 MB, free: 1.078 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.706e-06/0.005063, allocations: 3.938 kB / 322 MB, free: 1.074 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.599e-05/0.005119, allocations: 107.2 kB / 322.1 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.00512, allocations: 0 / 322.1 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.222e-06/0.005121, allocations: 4.609 kB / 322.1 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.183e-06/0.005122, allocations: 1.031 kB / 322.1 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.005133, allocations: 2.891 kB / 322.1 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.61e-07/0.005134, allocations: 4.188 kB / 322.1 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.005136, allocations: 1.828 kB / 322.1 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002103/0.005346, allocations: 235.6 kB / 322.3 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.813e-06/0.005353, allocations: 4.953 kB / 322.3 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.712e-05/0.00537, allocations: 3.719 kB / 322.3 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.375e-05/0.005384, allocations: 2.031 kB / 322.3 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.85e-05/0.005402, allocations: 1.062 kB / 322.3 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.494e-06/0.00541, allocations: 5.766 kB / 322.3 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.368e-05/0.005443, allocations: 92.34 kB / 322.4 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of sort global known variables: time 8e-08/0.005444, allocations: 0 / 322.4 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001976/0.005641, allocations: 13.59 kB / 322.4 MB, free: 0.6992 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.0003154/0.005957, allocations: 129.3 kB / 322.6 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001766/0.006133, allocations: 176.8 kB / 322.7 MB, free: 480 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.006136, allocations: 5.375 kB / 322.7 MB, free: 476 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 8.023e-05/0.006216, allocations: 115.7 kB / 322.9 MB, free: 376 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001501/0.006366, allocations: 4.688 kB / 322.9 MB, free: 376 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000294/0.00666, allocations: 178.2 kB / 323 MB, free: 220 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.592e-05/0.006716, allocations: 64.73 kB / 323.1 MB, free: 148 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 6.973e-06/0.006723, allocations: 0 / 323.1 MB, free: 148 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.507e-05/0.006738, allocations: 9.156 kB / 323.1 MB, free: 136 kB / 286.1 MB Notification: Performance of SimCode: time 3.71e-07/0.006738, allocations: 0 / 323.1 MB, free: 136 kB / 286.1 MB Notification: Performance of Templates: time 0.003595/0.01033, allocations: 0.6811 MB / 323.8 MB, free: 20 kB / 286.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.311379309743643]