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.0009354/0.0009354, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.0009492/0.0009492, allocations: 174 kB / 24.92 MB, free: 8.766 MB / 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 0.9791/0.9791, allocations: 177.1 MB / 205.3 MB, free: 5.492 MB / 186.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.214e-06/2.214e-06, allocations: 4 kB / 273.5 MB, free: 1.309 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.673e-05/1.895e-05, allocations: 2.312 kB / 273.5 MB, free: 1.305 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001049/0.001068, allocations: 0.5435 MB / 274 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001824/0.001251, allocations: 63.73 kB / 274.1 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.455e-05/0.001275, allocations: 0 / 274.1 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.67e-05/0.001302, allocations: 0 / 274.1 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.436e-05/0.001366, allocations: 19.91 kB / 274.1 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001222/0.001488, allocations: 19.92 kB / 274.1 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 7.161e-05/0.00156, allocations: 23.97 kB / 274.1 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.104e-05/0.001591, allocations: 0 / 274.1 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.505e-05/0.001626, allocations: 11.98 kB / 274.1 MB, free: 0.6289 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.715e-05/0.001683, allocations: 31.95 kB / 274.2 MB, free: 0.5977 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.285e-05/0.001696, allocations: 0 / 274.2 MB, free: 0.5977 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.539e-05/0.001731, allocations: 4 kB / 274.2 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.891e-05/0.00176, allocations: 7.938 kB / 274.2 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 1.918e-05/0.001779, allocations: 8 kB / 274.2 MB, free: 0.5781 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 7.393e-05/0.001853, allocations: 31.83 kB / 274.2 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.854e-06/0.001855, allocations: 3.938 kB / 274.2 MB, free: 0.543 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.001856, allocations: 0 / 274.2 MB, free: 0.543 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.815e-06/0.001859, allocations: 0 / 274.2 MB, free: 0.543 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.0002161/0.002075, allocations: 258.6 kB / 274.5 MB, free: 264 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.674e-05/0.002102, allocations: 12.03 kB / 274.5 MB, free: 252 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.253e-05/0.002124, allocations: 4.938 kB / 274.5 MB, free: 248 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.74e-05/0.002192, allocations: 113.7 kB / 274.6 MB, free: 108 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.106e-06/0.0022, allocations: 4.375 kB / 274.6 MB, free: 104 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.62e-06/0.002205, allocations: 384 / 274.6 MB, free: 104 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.443e-05/0.00227, allocations: 70.77 kB / 274.7 MB, free: 20 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.899e-06/0.002275, allocations: 192 / 274.7 MB, free: 20 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.2e-06/0.00228, allocations: 384 / 274.7 MB, free: 20 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.386e-06/0.002283, allocations: 384 / 274.7 MB, free: 20 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.008e-05/0.002313, allocations: 41.58 kB / 274.7 MB, free: 15.97 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.855e-05/0.002372, allocations: 55.88 kB / 274.8 MB, free: 15.9 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.326e-05/0.002415, allocations: 64.31 kB / 274.8 MB, free: 15.82 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.715e-05/0.002432, allocations: 34.59 kB / 274.9 MB, free: 15.78 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.575e-06/0.002435, allocations: 0 / 274.9 MB, free: 15.78 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.863e-05/0.002463, allocations: 60.27 kB / 274.9 MB, free: 15.71 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 4.51e-07/0.002464, allocations: 0 / 274.9 MB, free: 15.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001119/0.002576, allocations: 134.8 kB / 275.1 MB, free: 15.55 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.156e-05/0.002607, allocations: 85.11 kB / 275.1 MB, free: 15.45 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.407e-05/0.002662, allocations: 106.7 kB / 275.2 MB, free: 15.33 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.097e-06/0.002671, allocations: 29.7 kB / 275.3 MB, free: 15.3 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.945e-05/0.00269, allocations: 80.14 kB / 275.4 MB, free: 15.21 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.416e-05/0.002704, allocations: 11.89 kB / 275.4 MB, free: 15.2 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.225e-05/0.002726, allocations: 25.72 kB / 275.4 MB, free: 15.17 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.56e-05/0.002792, allocations: 314.8 kB / 275.7 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.655e-05/0.002809, allocations: 36.52 kB / 275.7 MB, free: 14.81 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.375e-05/0.002822, allocations: 29.7 kB / 275.8 MB, free: 14.78 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.206e-05/0.002864, allocations: 87.23 kB / 275.8 MB, free: 14.68 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.002866, allocations: 0 / 275.8 MB, free: 14.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.028e-05/0.002926, allocations: 101 kB / 275.9 MB, free: 14.56 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.002951, allocations: 37.69 kB / 276 MB, free: 14.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.002955, allocations: 0 / 276 MB, free: 14.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.032e-05/0.002965, allocations: 3.938 kB / 276 MB, free: 14.51 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.292e-06/0.002966, allocations: 4.062 kB / 276 MB, free: 14.51 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.994e-06/0.002968, allocations: 0 / 276 MB, free: 14.51 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.206e-05/0.00298, allocations: 4 kB / 276 MB, free: 14.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.2e-06/0.002986, allocations: 0 / 276 MB, free: 14.5 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 5.912e-05/0.003045, allocations: 150.3 kB / 276.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.134e-06/0.003052, allocations: 8 kB / 276.2 MB, free: 14.33 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.857e-06/0.003061, allocations: 4 kB / 276.2 MB, free: 14.33 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.91e-07/0.003061, allocations: 0 / 276.2 MB, free: 14.33 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-06/0.003063, allocations: 256 / 276.2 MB, free: 14.33 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.003064, allocations: 0 / 276.2 MB, free: 14.33 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.307e-05/0.003108, allocations: 73.83 kB / 276.2 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.1e-07/0.003108, allocations: 4 kB / 276.2 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.8e-07/0.003108, allocations: 4 kB / 276.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.92e-07/0.003109, allocations: 0 / 276.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.348e-06/0.003113, allocations: 0 / 276.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.51e-07/0.003114, allocations: 0 / 276.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-07/0.003114, allocations: 3.938 kB / 276.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.062e-05/0.003185, allocations: 142.1 kB / 276.4 MB, free: 14.06 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.36e-06/0.00319, allocations: 7.938 kB / 276.4 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.197e-05/0.003202, allocations: 4 kB / 276.4 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.631e-06/0.003208, allocations: 0 / 276.4 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.363e-06/0.003215, allocations: 0 / 276.4 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-06/0.003219, allocations: 12.03 kB / 276.4 MB, free: 14.04 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.057e-05/0.00323, allocations: 12.84 kB / 276.4 MB, free: 14.02 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00323, allocations: 0 / 276.4 MB, free: 14.02 MB / 266.7 MB Notification: Performance of remove unused functions: time 9.922e-05/0.003329, allocations: 8 kB / 276.4 MB, free: 14.01 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.000195/0.003524, allocations: 111 kB / 276.5 MB, free: 13.91 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.949e-05/0.003614, allocations: 147.6 kB / 276.7 MB, free: 13.74 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.003617, allocations: 4 kB / 276.7 MB, free: 13.73 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.326e-05/0.00365, allocations: 97.94 kB / 276.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.342e-05/0.003704, allocations: 7.938 kB / 276.8 MB, free: 13.61 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001654/0.003869, allocations: 159.9 kB / 276.9 MB, free: 13.42 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.549e-05/0.003894, allocations: 59.34 kB / 277 MB, free: 13.34 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.408e-06/0.003899, allocations: 3.938 kB / 277 MB, free: 13.34 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.686e-05/0.003956, allocations: 63.36 kB / 277.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of SimCode: time 3.7e-07/0.003956, allocations: 0 / 277.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of Templates: time 0.001802/0.005759, allocations: 0.7504 MB / 277.8 MB, free: 12.54 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=240 -s gbode -gbm=radauIIA3 -emit_protected -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.5692172520793974]