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.001023/0.001023, allocations: 80.62 kB / 22.21 MB, free: 2.297 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.001133/0.001133, allocations: 145.5 kB / 25.59 MB, free: 8.613 MB / 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.9432/0.9432, allocations: 173.4 MB / 202.2 MB, free: 8.324 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 1.583e-06/1.583e-06, allocations: 0 / 269.2 MB, free: 9.828 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.338e-05/2.497e-05, allocations: 3.469 kB / 269.2 MB, free: 9.824 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001527/0.001552, allocations: 0.4977 MB / 269.7 MB, free: 9.344 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002268/0.001779, allocations: 60.39 kB / 269.7 MB, free: 9.285 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.467e-05/0.001813, allocations: 1.781 kB / 269.7 MB, free: 9.285 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.164e-05/0.001855, allocations: 0 / 269.7 MB, free: 9.285 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.524e-05/0.00193, allocations: 15.92 kB / 269.7 MB, free: 9.27 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001561/0.002086, allocations: 27.84 kB / 269.8 MB, free: 9.242 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 8.931e-05/0.002176, allocations: 19.98 kB / 269.8 MB, free: 9.223 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.502e-05/0.002221, allocations: 5.062 kB / 269.8 MB, free: 9.219 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.574e-05/0.002266, allocations: 15.97 kB / 269.8 MB, free: 9.203 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.362e-05/0.00235, allocations: 25.06 kB / 269.8 MB, free: 9.18 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.716e-05/0.002367, allocations: 0 / 269.8 MB, free: 9.18 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.978e-05/0.002417, allocations: 4 kB / 269.8 MB, free: 9.176 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.658e-05/0.002464, allocations: 12.94 kB / 269.8 MB, free: 9.164 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.812e-05/0.002492, allocations: 7.984 kB / 269.8 MB, free: 9.156 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.922e-05/0.002591, allocations: 23.91 kB / 269.9 MB, free: 9.133 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.002593, allocations: 0.75 kB / 269.9 MB, free: 9.133 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.002594, allocations: 0 / 269.9 MB, free: 9.133 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.458e-06/0.002599, allocations: 0.6875 kB / 269.9 MB, free: 9.133 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.0003216/0.00292, allocations: 394.3 kB / 270.3 MB, free: 8.703 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.002955, allocations: 8.781 kB / 270.3 MB, free: 8.695 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.285e-05/0.002988, allocations: 8.875 kB / 270.3 MB, free: 8.688 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.092e-05/0.003079, allocations: 117.1 kB / 270.4 MB, free: 8.547 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.196e-05/0.003091, allocations: 3 kB / 270.4 MB, free: 8.547 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.752e-06/0.003097, allocations: 384 / 270.4 MB, free: 8.547 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.935e-05/0.003177, allocations: 67.95 kB / 270.5 MB, free: 8.469 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.003183, allocations: 192 / 270.5 MB, free: 8.469 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.748e-06/0.003193, allocations: 8.359 kB / 270.5 MB, free: 8.461 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.0032, allocations: 4.359 kB / 270.5 MB, free: 8.457 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.314e-05/0.003223, allocations: 33.64 kB / 270.5 MB, free: 8.418 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001005/0.003324, allocations: 94.23 kB / 270.6 MB, free: 8.301 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.884e-05/0.003382, allocations: 64.73 kB / 270.7 MB, free: 8.219 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.58e-05/0.003408, allocations: 37.92 kB / 270.7 MB, free: 8.172 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.978e-06/0.003412, allocations: 4 kB / 270.7 MB, free: 8.168 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.744e-05/0.00345, allocations: 71.12 kB / 270.8 MB, free: 8.082 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 1.172e-06/0.003451, allocations: 0 / 270.8 MB, free: 8.082 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002046/0.003655, allocations: 150.8 kB / 270.9 MB, free: 7.91 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.05e-05/0.003696, allocations: 81.09 kB / 271 MB, free: 7.812 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.637e-05/0.003792, allocations: 173.8 kB / 271.2 MB, free: 7.625 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.275e-05/0.003805, allocations: 29.69 kB / 271.2 MB, free: 7.59 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.364e-05/0.003849, allocations: 130.9 kB / 271.3 MB, free: 7.457 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.064e-05/0.003869, allocations: 11.89 kB / 271.3 MB, free: 7.445 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.428e-05/0.003904, allocations: 23.38 kB / 271.4 MB, free: 7.414 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.004042, allocations: 0.4961 MB / 271.9 MB, free: 6.906 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.664e-05/0.004069, allocations: 33.73 kB / 271.9 MB, free: 6.867 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.128e-05/0.00409, allocations: 29.7 kB / 271.9 MB, free: 6.832 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.008e-05/0.00415, allocations: 79.08 kB / 272 MB, free: 6.738 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.004152, allocations: 0 / 272 MB, free: 6.738 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001183/0.00427, allocations: 113.1 kB / 272.1 MB, free: 6.609 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.52e-05/0.004305, allocations: 37.69 kB / 272.1 MB, free: 6.566 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.097e-06/0.00431, allocations: 0 / 272.1 MB, free: 6.566 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.516e-06/0.004318, allocations: 3.938 kB / 272.1 MB, free: 6.562 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.004319, allocations: 0 / 272.1 MB, free: 6.562 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.225e-06/0.004321, allocations: 0 / 272.1 MB, free: 6.562 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.828e-05/0.00434, allocations: 0 / 272.1 MB, free: 6.562 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.308e-06/0.004349, allocations: 12 kB / 272.2 MB, free: 6.551 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 8.944e-05/0.004438, allocations: 186.3 kB / 272.3 MB, free: 6.352 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.661e-05/0.004455, allocations: 16.14 kB / 272.4 MB, free: 6.336 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.658e-05/0.004472, allocations: 8 kB / 272.4 MB, free: 6.32 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.073e-06/0.004474, allocations: 0 / 272.4 MB, free: 6.32 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.325e-06/0.004476, allocations: 4 kB / 272.4 MB, free: 6.316 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.004478, allocations: 0 / 272.4 MB, free: 6.316 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.134e-05/0.00456, allocations: 109.2 kB / 272.5 MB, free: 6.184 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.004561, allocations: 0 / 272.5 MB, free: 6.184 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.32e-07/0.004562, allocations: 0 / 272.5 MB, free: 6.184 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.004566, allocations: 4 kB / 272.5 MB, free: 6.18 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.582e-06/0.004572, allocations: 4 kB / 272.5 MB, free: 6.176 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.004573, allocations: 0 / 272.5 MB, free: 6.176 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.004575, allocations: 0 / 272.5 MB, free: 6.176 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000162/0.004737, allocations: 175.9 kB / 272.6 MB, free: 5.969 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.849e-06/0.004746, allocations: 7.938 kB / 272.7 MB, free: 5.961 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.655e-05/0.004763, allocations: 7.984 kB / 272.7 MB, free: 5.953 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.113e-05/0.004774, allocations: 0 / 272.7 MB, free: 5.953 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.287e-06/0.004783, allocations: 0 / 272.7 MB, free: 5.953 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.251e-06/0.00479, allocations: 4 kB / 272.7 MB, free: 5.949 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.395e-05/0.004834, allocations: 127.2 kB / 272.8 MB, free: 5.824 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.004834, allocations: 4.031 kB / 272.8 MB, free: 5.82 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000213/0.005047, allocations: 8 kB / 272.8 MB, free: 5.812 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.0002385/0.005285, allocations: 129.9 kB / 272.9 MB, free: 5.691 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001191/0.005404, allocations: 138.5 kB / 273.1 MB, free: 5.527 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.005406, allocations: 0 / 273.1 MB, free: 5.527 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.442e-05/0.005461, allocations: 108.7 kB / 273.2 MB, free: 5.398 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001414/0.005602, allocations: 12.06 kB / 273.2 MB, free: 5.387 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001957/0.005798, allocations: 155.9 kB / 273.3 MB, free: 5.199 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.173e-05/0.00583, allocations: 55.34 kB / 273.4 MB, free: 5.125 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.261e-06/0.005836, allocations: 4 kB / 273.4 MB, free: 5.121 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.261e-05/0.005918, allocations: 90.17 kB / 273.5 MB, free: 5.031 MB / 250.7 MB Notification: Performance of SimCode: time 6.51e-07/0.005919, allocations: 0 / 273.5 MB, free: 5.031 MB / 250.7 MB Notification: Performance of Templates: time 0.002669/0.008588, allocations: 0.7538 MB / 274.2 MB, free: 4.297 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.637258709874004]