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.0008563/0.0008563, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00105/0.001906, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007045/0.0007045, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00086/0.001564, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.011/1.011, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09197/1.103, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] 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 2.084e-06/2.084e-06, allocations: 0 / 244.5 MB, free: 14.36 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.608e-05/2.816e-05, allocations: 2.312 kB / 244.5 MB, free: 14.36 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.00149/0.001518, allocations: 0.5391 MB / 245 MB, free: 13.82 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001233/0.001641, allocations: 59.8 kB / 245.1 MB, free: 13.76 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.31e-05/0.001664, allocations: 0 / 245.1 MB, free: 13.76 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 1.962e-05/0.001684, allocations: 0 / 245.1 MB, free: 13.76 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.369e-05/0.001738, allocations: 27.83 kB / 245.1 MB, free: 13.73 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 8.289e-05/0.001821, allocations: 15.98 kB / 245.1 MB, free: 13.71 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.038e-05/0.001911, allocations: 19.98 kB / 245.2 MB, free: 13.7 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.753e-05/0.001949, allocations: 11.98 kB / 245.2 MB, free: 13.68 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.114e-05/0.002, allocations: 11.98 kB / 245.2 MB, free: 13.67 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.045e-05/0.00207, allocations: 27.91 kB / 245.2 MB, free: 13.64 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.655e-05/0.002087, allocations: 0 / 245.2 MB, free: 13.64 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.194e-05/0.002129, allocations: 8 kB / 245.2 MB, free: 13.64 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.369e-05/0.002162, allocations: 4 kB / 245.2 MB, free: 13.63 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 1.969e-05/0.002182, allocations: 4 kB / 245.2 MB, free: 13.63 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.051e-05/0.002273, allocations: 27.8 kB / 245.2 MB, free: 13.6 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.514e-05/0.002288, allocations: 0 / 245.2 MB, free: 13.6 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.002289, allocations: 0 / 245.2 MB, free: 13.6 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.514e-05/0.002304, allocations: 0 / 245.2 MB, free: 13.6 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.003335/0.005638, allocations: 278.3 kB / 245.5 MB, free: 13.3 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.005685, allocations: 12.03 kB / 245.5 MB, free: 13.29 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.778e-05/0.005743, allocations: 4.938 kB / 245.5 MB, free: 13.28 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001207/0.005864, allocations: 109.7 kB / 245.6 MB, free: 13.15 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.071e-05/0.005884, allocations: 4.375 kB / 245.6 MB, free: 13.14 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.123e-05/0.005896, allocations: 384 / 245.6 MB, free: 13.14 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000144/0.00604, allocations: 70.77 kB / 245.7 MB, free: 13.06 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.968e-06/0.00605, allocations: 192 / 245.7 MB, free: 13.06 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.408e-06/0.006059, allocations: 4.375 kB / 245.7 MB, free: 13.06 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.006065, allocations: 384 / 245.7 MB, free: 13.06 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.153e-05/0.006106, allocations: 45.56 kB / 245.8 MB, free: 13.01 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.666e-05/0.006203, allocations: 59.88 kB / 245.8 MB, free: 12.93 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.39e-05/0.006267, allocations: 56.31 kB / 245.9 MB, free: 12.86 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.748e-05/0.006294, allocations: 38.59 kB / 245.9 MB, free: 12.82 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.028e-06/0.006298, allocations: 0 / 245.9 MB, free: 12.82 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.847e-05/0.006337, allocations: 60.3 kB / 246 MB, free: 12.74 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 8.31e-07/0.006338, allocations: 0 / 246 MB, free: 12.74 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001636/0.006501, allocations: 142.7 kB / 246.1 MB, free: 12.58 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.688e-05/0.006558, allocations: 85.09 kB / 246.2 MB, free: 12.48 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001009/0.006659, allocations: 114.7 kB / 246.3 MB, free: 12.35 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.33e-05/0.006672, allocations: 25.7 kB / 246.3 MB, free: 12.32 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.276e-05/0.006705, allocations: 92.16 kB / 246.4 MB, free: 12.23 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.112e-05/0.006726, allocations: 3.953 kB / 246.4 MB, free: 12.22 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.068e-05/0.006767, allocations: 13.72 kB / 246.4 MB, free: 12.2 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.006872, allocations: 326.8 kB / 246.8 MB, free: 11.88 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.747e-05/0.006899, allocations: 32.53 kB / 246.8 MB, free: 11.84 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.313e-05/0.006923, allocations: 33.7 kB / 246.8 MB, free: 11.8 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.738e-05/0.00699, allocations: 83.06 kB / 246.9 MB, free: 11.7 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.006993, allocations: 4 kB / 246.9 MB, free: 11.7 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001035/0.007096, allocations: 101 kB / 247 MB, free: 11.58 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.261e-05/0.007159, allocations: 37.69 kB / 247 MB, free: 11.54 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.007165, allocations: 4.062 kB / 247 MB, free: 11.53 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.007178, allocations: 0 / 247 MB, free: 11.53 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.061e-06/0.007184, allocations: 0 / 247 MB, free: 11.53 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.466e-06/0.007187, allocations: 0 / 247 MB, free: 11.53 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.648e-05/0.007214, allocations: 4 kB / 247.1 MB, free: 11.53 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.306e-05/0.007227, allocations: 0 / 247.1 MB, free: 11.53 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.0001008/0.007328, allocations: 146.3 kB / 247.2 MB, free: 11.37 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.795e-05/0.007345, allocations: 12 kB / 247.2 MB, free: 11.36 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.895e-05/0.007364, allocations: 4 kB / 247.2 MB, free: 11.36 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.007366, allocations: 0 / 247.2 MB, free: 11.36 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-06/0.007368, allocations: 0 / 247.2 MB, free: 11.36 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.00737, allocations: 4 kB / 247.2 MB, free: 11.35 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.966e-05/0.00746, allocations: 73.81 kB / 247.3 MB, free: 11.26 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.007465, allocations: 4 kB / 247.3 MB, free: 11.26 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.064e-06/0.007467, allocations: 0 / 247.3 MB, free: 11.26 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.54e-05/0.007482, allocations: 11.83 kB / 247.3 MB, free: 11.25 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.007486, allocations: 0 / 247.3 MB, free: 11.25 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.007497, allocations: 4 kB / 247.3 MB, free: 11.24 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.007499, allocations: 0 / 247.3 MB, free: 11.24 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.007501, allocations: 0 / 247.3 MB, free: 11.24 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001653/0.007667, allocations: 142.3 kB / 247.4 MB, free: 11.07 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.197e-05/0.007688, allocations: 3.984 kB / 247.4 MB, free: 11.07 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.522e-05/0.007704, allocations: 11.97 kB / 247.5 MB, free: 11.05 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.294e-05/0.007717, allocations: 3.984 kB / 247.5 MB, free: 11.05 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.408e-06/0.007726, allocations: 4.25 kB / 247.5 MB, free: 11.05 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.502e-05/0.007751, allocations: 16.86 kB / 247.5 MB, free: 11.03 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007751, allocations: 0 / 247.5 MB, free: 11.03 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001799/0.007931, allocations: 8 kB / 247.5 MB, free: 11.02 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.0003429/0.008274, allocations: 113.8 kB / 247.6 MB, free: 10.91 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001438/0.008418, allocations: 143.6 kB / 247.7 MB, free: 10.75 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.221e-06/0.008424, allocations: 4 kB / 247.7 MB, free: 10.74 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.122e-05/0.008475, allocations: 102 kB / 247.8 MB, free: 10.62 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.711e-05/0.008562, allocations: 11.22 kB / 247.9 MB, free: 10.61 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002415/0.008804, allocations: 163.8 kB / 248 MB, free: 10.42 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.535e-05/0.008839, allocations: 55.36 kB / 248.1 MB, free: 10.34 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.111e-06/0.008845, allocations: 0 / 248.1 MB, free: 10.34 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.068e-05/0.008936, allocations: 67.34 kB / 248.1 MB, free: 10.28 MB / 250.7 MB Notification: Performance of SimCode: time 6.11e-07/0.008937, allocations: 4.125 kB / 248.1 MB, free: 10.27 MB / 250.7 MB Notification: Performance of Templates: time 0.003263/0.0122, allocations: 0.7622 MB / 248.9 MB, free: 9.527 MB / 250.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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 240] 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","",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.484840465709567]