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.001866/0.001866, allocations: 92.31 kB / 20.96 MB, free: 3.473 MB / 18.57 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.00167/0.00167, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 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.473/1.473, allocations: 177.1 MB / 204.6 MB, free: 5.598 MB / 186.7 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.513e-06/1.513e-06, allocations: 0 / 272.3 MB, free: 1.863 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.327e-05/2.479e-05, allocations: 2.312 kB / 272.3 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.00149/0.001514, allocations: 0.4953 MB / 272.8 MB, free: 1.367 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002397/0.001754, allocations: 60.36 kB / 272.8 MB, free: 1.309 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.736e-05/0.001781, allocations: 0 / 272.8 MB, free: 1.309 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.853e-05/0.00182, allocations: 0 / 272.8 MB, free: 1.309 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.599e-05/0.001886, allocations: 15.97 kB / 272.8 MB, free: 1.293 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001529/0.002039, allocations: 23.86 kB / 272.9 MB, free: 1.27 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 7.7e-05/0.002116, allocations: 19.98 kB / 272.9 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.065e-05/0.002157, allocations: 11.97 kB / 272.9 MB, free: 1.238 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.547e-05/0.002202, allocations: 15.92 kB / 272.9 MB, free: 1.223 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.291e-05/0.002275, allocations: 19.98 kB / 272.9 MB, free: 1.203 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.414e-05/0.002289, allocations: 0 / 272.9 MB, free: 1.203 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.847e-05/0.002328, allocations: 4 kB / 272.9 MB, free: 1.199 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.81e-05/0.002366, allocations: 11.98 kB / 273 MB, free: 1.188 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.862e-05/0.002404, allocations: 11.92 kB / 273 MB, free: 1.176 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.309e-05/0.002497, allocations: 19.98 kB / 273 MB, free: 1.156 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.002502, allocations: 4 kB / 273 MB, free: 1.152 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.22e-07/0.002502, allocations: 0 / 273 MB, free: 1.152 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.357e-06/0.002506, allocations: 0 / 273 MB, free: 1.152 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.0003869/0.002893, allocations: 291.9 kB / 273.3 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.131e-05/0.002924, allocations: 8.031 kB / 273.3 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.689e-05/0.002971, allocations: 12.83 kB / 273.3 MB, free: 0.8086 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001313/0.003102, allocations: 109.8 kB / 273.4 MB, free: 0.6758 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.003114, allocations: 384 / 273.4 MB, free: 0.6758 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.272e-05/0.003127, allocations: 4.375 kB / 273.4 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001385/0.003265, allocations: 83.95 kB / 273.5 MB, free: 0.5781 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.003272, allocations: 192 / 273.5 MB, free: 0.5781 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.003284, allocations: 4.375 kB / 273.5 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.003287, allocations: 384 / 273.5 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.576e-05/0.003363, allocations: 65.61 kB / 273.6 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001361/0.003499, allocations: 101.3 kB / 273.7 MB, free: 384 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.871e-05/0.003598, allocations: 72.25 kB / 273.7 MB, free: 296 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.203e-05/0.00367, allocations: 62.62 kB / 273.8 MB, free: 224 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.626e-06/0.003679, allocations: 0 / 273.8 MB, free: 224 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.196e-05/0.003741, allocations: 64.25 kB / 273.8 MB, free: 144 kB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 6.81e-07/0.003741, allocations: 0 / 273.8 MB, free: 144 kB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0004162/0.004158, allocations: 250.6 kB / 274.1 MB, free: 15.87 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.883e-05/0.004226, allocations: 85.05 kB / 274.2 MB, free: 15.77 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001178/0.004344, allocations: 113.8 kB / 274.3 MB, free: 15.65 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.004366, allocations: 29.73 kB / 274.3 MB, free: 15.61 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.039e-05/0.004426, allocations: 92.12 kB / 274.4 MB, free: 15.52 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.018e-05/0.004446, allocations: 7.891 kB / 274.4 MB, free: 15.51 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.808e-05/0.004484, allocations: 13.72 kB / 274.4 MB, free: 15.49 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003796/0.004864, allocations: 318.8 kB / 274.7 MB, free: 15.17 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.432e-05/0.004928, allocations: 53.69 kB / 274.8 MB, free: 15.11 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.06e-05/0.004999, allocations: 61.67 kB / 274.9 MB, free: 15.05 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001358/0.005135, allocations: 124.4 kB / 275 MB, free: 14.91 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.005136, allocations: 0 / 275 MB, free: 14.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000218/0.005354, allocations: 181.2 kB / 275.2 MB, free: 14.71 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.251e-05/0.005397, allocations: 33.7 kB / 275.2 MB, free: 14.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.686e-06/0.0054, allocations: 4.062 kB / 275.2 MB, free: 14.67 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.005416, allocations: 4 kB / 275.2 MB, free: 14.67 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.58e-06/0.005422, allocations: 7.984 kB / 275.2 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.757e-06/0.005425, allocations: 0 / 275.2 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.059e-05/0.005446, allocations: 3.938 kB / 275.2 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.137e-05/0.005457, allocations: 4 kB / 275.2 MB, free: 14.65 MB / 266.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.0001204/0.005578, allocations: 143.5 kB / 275.3 MB, free: 14.5 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.856e-05/0.005596, allocations: 7.953 kB / 275.4 MB, free: 14.49 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.584e-05/0.005612, allocations: 8 kB / 275.4 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.005613, allocations: 0 / 275.4 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.005616, allocations: 4 kB / 275.4 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.00562, allocations: 3.938 kB / 275.4 MB, free: 14.47 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001095/0.00573, allocations: 109.3 kB / 275.5 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.005731, allocations: 0 / 275.5 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.005731, allocations: 0 / 275.5 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.005732, allocations: 0 / 275.5 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.036e-05/0.005743, allocations: 4 kB / 275.5 MB, free: 14.33 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.91e-07/0.005743, allocations: 0 / 275.5 MB, free: 14.33 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.005744, allocations: 0 / 275.5 MB, free: 14.33 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002989/0.006043, allocations: 232.3 kB / 275.7 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.089e-05/0.006054, allocations: 8 kB / 275.7 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.84e-05/0.006072, allocations: 8.016 kB / 275.7 MB, free: 14.06 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.594e-05/0.006088, allocations: 4 kB / 275.7 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.518e-05/0.006103, allocations: 3.938 kB / 275.7 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.399e-06/0.006108, allocations: 0 / 275.7 MB, free: 14.05 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.942e-05/0.006177, allocations: 91.28 kB / 275.8 MB, free: 13.96 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.006177, allocations: 0 / 275.8 MB, free: 13.96 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002062/0.006384, allocations: 15.92 kB / 275.8 MB, free: 13.95 MB / 266.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.000354/0.006738, allocations: 135.3 kB / 276 MB, free: 13.82 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002375/0.006975, allocations: 178.8 kB / 276.1 MB, free: 13.62 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.006977, allocations: 0 / 276.1 MB, free: 13.62 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001161/0.007093, allocations: 117 kB / 276.3 MB, free: 13.48 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001491/0.007242, allocations: 8 kB / 276.3 MB, free: 13.48 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002995/0.007542, allocations: 178.3 kB / 276.4 MB, free: 13.27 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.312e-05/0.007615, allocations: 63.34 kB / 276.5 MB, free: 13.19 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.04e-06/0.00762, allocations: 0 / 276.5 MB, free: 13.19 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.303e-05/0.007633, allocations: 8.625 kB / 276.5 MB, free: 13.18 MB / 266.7 MB Notification: Performance of SimCode: time 4.21e-07/0.007633, allocations: 4 kB / 276.5 MB, free: 13.18 MB / 266.7 MB Notification: Performance of Templates: time 0.003409/0.01104, allocations: 0.684 MB / 277.2 MB, free: 12.5 MB / 266.7 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.230131180025637]