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.00104/0.00104, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00145/0.00249, allocations: 449.8 kB / 10.44 MB, free: 252 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.001058/0.001058, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00145/0.002508, allocations: 479.5 kB / 11.83 MB, free: 2.344 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 0.965/0.965, allocations: 177.2 MB / 189.8 MB, free: 5.254 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08741/1.052, allocations: 53.66 MB / 243.4 MB, free: 15.51 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 1.633e-06/1.633e-06, allocations: 0 / 244.7 MB, free: 14.26 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.194e-05/1.358e-05, allocations: 5.969 kB / 244.7 MB, free: 14.26 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0009035/0.000917, allocations: 0.544 MB / 245.2 MB, free: 13.71 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 9.275e-05/0.00101, allocations: 55.8 kB / 245.3 MB, free: 13.66 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.806e-05/0.001028, allocations: 0 / 245.3 MB, free: 13.66 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 1.574e-05/0.001044, allocations: 0 / 245.3 MB, free: 13.66 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 4.571e-05/0.001089, allocations: 19.97 kB / 245.3 MB, free: 13.64 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 6.067e-05/0.00115, allocations: 27.91 kB / 245.3 MB, free: 13.61 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 7.595e-05/0.001226, allocations: 19.98 kB / 245.3 MB, free: 13.59 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.357e-05/0.001259, allocations: 7.938 kB / 245.3 MB, free: 13.58 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.819e-05/0.001308, allocations: 19.97 kB / 245.4 MB, free: 13.56 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.972e-05/0.001367, allocations: 19.98 kB / 245.4 MB, free: 13.54 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.488e-05/0.001382, allocations: 0 / 245.4 MB, free: 13.54 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.51e-05/0.001417, allocations: 7.938 kB / 245.4 MB, free: 13.54 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.735e-05/0.001455, allocations: 11.92 kB / 245.4 MB, free: 13.52 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 1.904e-05/0.001474, allocations: 4 kB / 245.4 MB, free: 13.52 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 7.599e-05/0.00155, allocations: 19.92 kB / 245.4 MB, free: 13.5 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.007e-05/0.00156, allocations: 4 kB / 245.4 MB, free: 13.5 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.00156, allocations: 4 kB / 245.4 MB, free: 13.49 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.001568, allocations: 0 / 245.4 MB, free: 13.49 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.000261/0.001829, allocations: 270.2 kB / 245.7 MB, free: 13.2 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.963e-05/0.001859, allocations: 8.031 kB / 245.7 MB, free: 13.19 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.687e-05/0.001886, allocations: 4.938 kB / 245.7 MB, free: 13.18 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.657e-05/0.001972, allocations: 117.7 kB / 245.8 MB, free: 13.04 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.839e-06/0.001982, allocations: 4.359 kB / 245.8 MB, free: 13.04 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.556e-06/0.001991, allocations: 384 / 245.8 MB, free: 13.04 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.497e-05/0.002066, allocations: 78.7 kB / 245.9 MB, free: 12.95 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.4e-06/0.002071, allocations: 192 / 245.9 MB, free: 12.95 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.701e-06/0.002077, allocations: 4.375 kB / 245.9 MB, free: 12.95 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.002081, allocations: 384 / 245.9 MB, free: 12.95 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.85e-05/0.0021, allocations: 37.64 kB / 246 MB, free: 12.9 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.827e-05/0.002158, allocations: 67.86 kB / 246 MB, free: 12.82 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.907e-05/0.002197, allocations: 48.28 kB / 246.1 MB, free: 12.76 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.815e-05/0.002215, allocations: 38.59 kB / 246.1 MB, free: 12.71 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.956e-06/0.002218, allocations: 96 / 246.1 MB, free: 12.71 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.881e-05/0.002257, allocations: 64.25 kB / 246.2 MB, free: 12.63 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 5.91e-07/0.002258, allocations: 3.938 kB / 246.2 MB, free: 12.63 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001159/0.002373, allocations: 138.8 kB / 246.3 MB, free: 12.47 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.503e-05/0.002438, allocations: 162.2 kB / 246.5 MB, free: 12.27 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.911e-05/0.002498, allocations: 110.7 kB / 246.6 MB, free: 12.15 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.697e-06/0.002506, allocations: 25.7 kB / 246.6 MB, free: 12.12 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.873e-05/0.002525, allocations: 84.14 kB / 246.7 MB, free: 12.04 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.873e-05/0.002544, allocations: 3.953 kB / 246.7 MB, free: 12.03 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.73e-05/0.002571, allocations: 25.69 kB / 246.7 MB, free: 12 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.002678, allocations: 318.8 kB / 247 MB, free: 11.68 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.944e-05/0.002697, allocations: 36.52 kB / 247.1 MB, free: 11.64 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.543e-05/0.002713, allocations: 33.7 kB / 247.1 MB, free: 11.6 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.177e-05/0.002754, allocations: 79.02 kB / 247.2 MB, free: 11.5 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.002756, allocations: 0 / 247.2 MB, free: 11.5 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.865e-05/0.002815, allocations: 109.1 kB / 247.3 MB, free: 11.38 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.938e-05/0.002854, allocations: 33.7 kB / 247.3 MB, free: 11.34 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.002858, allocations: 0 / 247.3 MB, free: 11.34 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.046e-05/0.002869, allocations: 0 / 247.3 MB, free: 11.34 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.182e-06/0.00287, allocations: 0 / 247.3 MB, free: 11.34 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.074e-06/0.002872, allocations: 0 / 247.3 MB, free: 11.34 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.378e-05/0.002886, allocations: 4 kB / 247.3 MB, free: 11.34 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.843e-06/0.002893, allocations: 7.938 kB / 247.3 MB, free: 11.33 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 5.986e-05/0.002953, allocations: 150.3 kB / 247.5 MB, free: 11.16 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.994e-06/0.00296, allocations: 4 kB / 247.5 MB, free: 11.16 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.869e-06/0.002969, allocations: 19.95 kB / 247.5 MB, free: 11.14 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.62e-07/0.00297, allocations: 0 / 247.5 MB, free: 11.14 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-06/0.002972, allocations: 0 / 247.5 MB, free: 11.14 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.002975, allocations: 0 / 247.5 MB, free: 11.14 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.259e-05/0.003017, allocations: 65.84 kB / 247.6 MB, free: 11.06 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.61e-07/0.003018, allocations: 0 / 247.6 MB, free: 11.06 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.312e-06/0.003019, allocations: 4 kB / 247.6 MB, free: 11.05 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.503e-06/0.003026, allocations: 7.891 kB / 247.6 MB, free: 11.05 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.003028, allocations: 4.172 kB / 247.6 MB, free: 11.04 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.27e-06/0.003033, allocations: 4 kB / 247.6 MB, free: 11.04 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.91e-07/0.003034, allocations: 256 / 247.6 MB, free: 11.04 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.003035, allocations: 4 kB / 247.6 MB, free: 11.04 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001481/0.003183, allocations: 154.1 kB / 247.7 MB, free: 10.85 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.148e-05/0.003195, allocations: 0 / 247.7 MB, free: 10.85 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.376e-06/0.003203, allocations: 4 kB / 247.7 MB, free: 10.85 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.356e-06/0.003211, allocations: 0 / 247.7 MB, free: 10.85 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-06/0.003214, allocations: 0 / 247.7 MB, free: 10.85 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.242e-05/0.003226, allocations: 16.83 kB / 247.7 MB, free: 10.83 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.003226, allocations: 7.938 kB / 247.8 MB, free: 10.82 MB / 250.7 MB Notification: Performance of remove unused functions: time 9.804e-05/0.003324, allocations: 8 kB / 247.8 MB, free: 10.81 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.0002415/0.003566, allocations: 116.2 kB / 247.9 MB, free: 10.71 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 9.68e-05/0.003663, allocations: 139.7 kB / 248 MB, free: 10.55 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.003667, allocations: 4 kB / 248 MB, free: 10.54 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.765e-05/0.003704, allocations: 102 kB / 248.1 MB, free: 10.42 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.006e-05/0.003774, allocations: 19.86 kB / 248.1 MB, free: 10.4 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001781/0.003952, allocations: 159.8 kB / 248.3 MB, free: 10.21 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3e-05/0.003982, allocations: 59.53 kB / 248.3 MB, free: 10.13 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.949e-06/0.003987, allocations: 4 kB / 248.4 MB, free: 10.13 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.822e-05/0.004046, allocations: 67.36 kB / 248.4 MB, free: 10.06 MB / 250.7 MB Notification: Performance of SimCode: time 5.21e-07/0.004046, allocations: 0 / 248.4 MB, free: 10.06 MB / 250.7 MB Notification: Performance of Templates: time 0.002074/0.006121, allocations: 0.7688 MB / 249.2 MB, free: 9.305 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.548630607314408]