Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0007841/0.0007841, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001086/0.00187, allocations: 445.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.0007263/0.0007263, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009681/0.001694, allocations: 463.6 kB / 11.71 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9488/0.9488, allocations: 158.6 MB / 171.1 MB, free: 2.578 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1502/1.099, allocations: 49.49 MB / 220.6 MB, free: 1.453 MB / 218.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.843e-06/1.843e-06, allocations: 0 / 221.8 MB, free: 220 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.962e-05/3.146e-05, allocations: 2.312 kB / 221.8 MB, free: 216 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001094/0.001126, allocations: 0.5477 MB / 222.3 MB, free: 15.66 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001037/0.001229, allocations: 59.8 kB / 222.4 MB, free: 15.6 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.096e-05/0.00125, allocations: 0 / 222.4 MB, free: 15.6 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 1.973e-05/0.00127, allocations: 3.938 kB / 222.4 MB, free: 15.6 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.361e-05/0.001324, allocations: 19.97 kB / 222.4 MB, free: 15.58 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001021/0.001426, allocations: 11.98 kB / 222.4 MB, free: 15.57 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001018/0.001528, allocations: 19.98 kB / 222.5 MB, free: 15.55 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.887e-05/0.001566, allocations: 4 kB / 222.5 MB, free: 15.54 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.392e-05/0.00163, allocations: 23.91 kB / 222.5 MB, free: 15.52 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.741e-05/0.001698, allocations: 23.97 kB / 222.5 MB, free: 15.5 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 1.978e-05/0.001718, allocations: 0 / 222.5 MB, free: 15.5 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.907e-05/0.001767, allocations: 15.88 kB / 222.5 MB, free: 15.48 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.074e-05/0.001807, allocations: 4 kB / 222.5 MB, free: 15.48 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 2.089e-05/0.001828, allocations: 7.938 kB / 222.5 MB, free: 15.47 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 9.117e-05/0.001919, allocations: 19.97 kB / 222.6 MB, free: 15.45 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.808e-05/0.001947, allocations: 0 / 222.6 MB, free: 15.45 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.001949, allocations: 0 / 222.6 MB, free: 15.45 MB / 234.7 MB Notification: Performance of Transformations before backend: time 2.375e-05/0.001972, allocations: 0 / 222.6 MB, free: 15.45 MB / 234.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.0003403/0.002313, allocations: 274.3 kB / 222.8 MB, free: 15.15 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.074e-05/0.002343, allocations: 12.03 kB / 222.8 MB, free: 15.14 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.382e-05/0.002377, allocations: 4.938 kB / 222.8 MB, free: 15.13 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.767e-05/0.002475, allocations: 121.7 kB / 223 MB, free: 14.99 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.244e-05/0.002487, allocations: 384 / 223 MB, free: 14.99 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.893e-06/0.002494, allocations: 4.312 kB / 223 MB, free: 14.98 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.999e-05/0.002594, allocations: 74.7 kB / 223 MB, free: 14.9 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.002602, allocations: 192 / 223 MB, free: 14.9 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.273e-06/0.00261, allocations: 4.375 kB / 223 MB, free: 14.89 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.002615, allocations: 384 / 223 MB, free: 14.89 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.53e-05/0.002641, allocations: 33.64 kB / 223.1 MB, free: 14.86 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.387e-05/0.002714, allocations: 59.88 kB / 223.1 MB, free: 14.78 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.457e-05/0.002769, allocations: 64.31 kB / 223.2 MB, free: 14.7 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.051e-05/0.00279, allocations: 38.59 kB / 223.2 MB, free: 14.66 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.278e-06/0.002794, allocations: 0 / 223.2 MB, free: 14.66 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.851e-05/0.002832, allocations: 60.27 kB / 223.3 MB, free: 14.58 MB / 234.7 MB Notification: Performance of pre-optimization done (n=4): time 9.32e-07/0.002833, allocations: 3.938 kB / 223.3 MB, free: 14.58 MB / 234.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001638/0.002997, allocations: 134.8 kB / 223.4 MB, free: 14.42 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.847e-05/0.003035, allocations: 81.09 kB / 223.5 MB, free: 14.32 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.302e-05/0.003109, allocations: 114.7 kB / 223.6 MB, free: 14.2 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.136e-05/0.00312, allocations: 29.7 kB / 223.6 MB, free: 14.16 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.436e-05/0.003144, allocations: 84.12 kB / 223.7 MB, free: 14.08 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.848e-05/0.003163, allocations: 11.97 kB / 223.7 MB, free: 14.07 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.801e-05/0.003191, allocations: 17.72 kB / 223.8 MB, free: 14.04 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.138e-05/0.003272, allocations: 314.8 kB / 224.1 MB, free: 13.73 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.482e-05/0.003297, allocations: 40.52 kB / 224.1 MB, free: 13.68 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.932e-05/0.003316, allocations: 29.7 kB / 224.1 MB, free: 13.64 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.979e-05/0.003366, allocations: 91 kB / 224.2 MB, free: 13.54 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.003369, allocations: 0 / 224.2 MB, free: 13.54 MB / 234.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.702e-05/0.003446, allocations: 101.1 kB / 224.3 MB, free: 13.42 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.94e-05/0.003485, allocations: 33.7 kB / 224.4 MB, free: 13.38 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.003491, allocations: 0 / 224.4 MB, free: 13.38 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.516e-06/0.003499, allocations: 0 / 224.4 MB, free: 13.38 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.931e-06/0.003505, allocations: 8.047 kB / 224.4 MB, free: 13.38 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.244e-06/0.003507, allocations: 0 / 224.4 MB, free: 13.38 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.835e-05/0.003526, allocations: 4 kB / 224.4 MB, free: 13.37 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.704e-06/0.003533, allocations: 0 / 224.4 MB, free: 13.37 MB / 234.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 7.45e-05/0.003608, allocations: 146.3 kB / 224.5 MB, free: 13.21 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.798e-06/0.003618, allocations: 7.984 kB / 224.5 MB, free: 13.2 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.588e-05/0.003634, allocations: 11.94 kB / 224.5 MB, free: 13.2 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.003635, allocations: 0 / 224.5 MB, free: 13.2 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-06/0.003636, allocations: 3.938 kB / 224.5 MB, free: 13.19 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.003638, allocations: 192 / 224.5 MB, free: 13.19 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.529e-05/0.003694, allocations: 77.78 kB / 224.6 MB, free: 13.1 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.003696, allocations: 3.984 kB / 224.6 MB, free: 13.09 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.362e-06/0.003697, allocations: 3.984 kB / 224.6 MB, free: 13.09 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.362e-06/0.003704, allocations: 3.953 kB / 224.6 MB, free: 13.09 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.542e-06/0.003705, allocations: 0 / 224.6 MB, free: 13.09 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.611e-06/0.003711, allocations: 4 kB / 224.6 MB, free: 13.08 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.003711, allocations: 0 / 224.6 MB, free: 13.08 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.003712, allocations: 0 / 224.6 MB, free: 13.08 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001127/0.003825, allocations: 142.1 kB / 224.8 MB, free: 12.91 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.6e-05/0.003841, allocations: 4.25 kB / 224.8 MB, free: 12.91 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.05e-05/0.003852, allocations: 4 kB / 224.8 MB, free: 12.9 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.211e-05/0.003864, allocations: 12 kB / 224.8 MB, free: 12.89 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.09e-06/0.003869, allocations: 8 kB / 224.8 MB, free: 12.88 MB / 234.7 MB Notification: Performance of sorting global known variables: time 1.413e-05/0.003883, allocations: 8.859 kB / 224.8 MB, free: 12.87 MB / 234.7 MB Notification: Performance of sort global known variables: time 5e-08/0.003883, allocations: 3.938 kB / 224.8 MB, free: 12.87 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0001039/0.003987, allocations: 8 kB / 224.8 MB, free: 12.86 MB / 234.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.0003413/0.004328, allocations: 110.3 kB / 224.9 MB, free: 12.76 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0001254/0.004454, allocations: 139.7 kB / 225.1 MB, free: 12.6 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.004458, allocations: 0 / 225.1 MB, free: 12.6 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 4.154e-05/0.004499, allocations: 106 kB / 225.2 MB, free: 12.47 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.006e-05/0.004569, allocations: 19.89 kB / 225.2 MB, free: 12.45 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001983/0.004767, allocations: 159.8 kB / 225.3 MB, free: 12.26 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.83e-05/0.004796, allocations: 59.34 kB / 225.4 MB, free: 12.18 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 4.739e-06/0.004801, allocations: 0 / 225.4 MB, free: 12.18 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.102e-05/0.004862, allocations: 63.36 kB / 225.5 MB, free: 12.12 MB / 234.7 MB Notification: Performance of SimCode: time 5.91e-07/0.004862, allocations: 0 / 225.5 MB, free: 12.12 MB / 234.7 MB Notification: Performance of Templates: time 0.002285/0.007147, allocations: 0.7512 MB / 226.2 MB, free: 11.38 MB / 234.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.7868413235992193]