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.001536/0.001536, allocations: 120.2 kB / 21.94 MB, free: 8 kB / 14.72 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.001696/0.001696, allocations: 202.7 kB / 25.23 MB, free: 3.551 MB / 14.72 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 1.519/1.519, allocations: 207.6 MB / 236 MB, free: 9.965 MB / 190.1 MB " [Timeout remaining time 178] 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 52.25 kB / 348.4 MB, free: 9.547 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2623/0.2642, allocations: 49.17 MB / 397.6 MB, free: 9.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001697/0.2659, allocations: 488.8 kB / 398.1 MB, free: 9.199 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002524/0.2662, allocations: 63.27 kB / 398.1 MB, free: 9.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.044e-05/0.2662, allocations: 1.344 kB / 398.1 MB, free: 9.16 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.454e-05/0.2663, allocations: 1.031 kB / 398.1 MB, free: 9.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.508e-05/0.2663, allocations: 20.55 kB / 398.1 MB, free: 9.152 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001471/0.2665, allocations: 17.72 kB / 398.2 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.641e-05/0.2666, allocations: 20.3 kB / 398.2 MB, free: 9.141 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.732e-05/0.2666, allocations: 2.797 kB / 398.2 MB, free: 9.141 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.674e-05/0.2666, allocations: 17.42 kB / 398.2 MB, free: 9.133 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.145e-05/0.2667, allocations: 22.97 kB / 398.2 MB, free: 9.133 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.49e-05/0.2667, allocations: 1.125 kB / 398.2 MB, free: 9.133 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.055e-05/0.2668, allocations: 13.59 kB / 398.2 MB, free: 9.125 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.97e-05/0.2668, allocations: 7.875 kB / 398.2 MB, free: 9.121 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.861e-05/0.2668, allocations: 12.77 kB / 398.3 MB, free: 9.113 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001105/0.267, allocations: 31.38 kB / 398.3 MB, free: 9.102 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.267, allocations: 0.5156 kB / 398.3 MB, free: 9.102 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.267, allocations: 0 / 398.3 MB, free: 9.102 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.267, allocations: 1.562 kB / 398.3 MB, free: 9.102 MB / 318.1 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.0002723/0.2672, allocations: 287 kB / 398.6 MB, free: 8.805 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.255e-05/0.2673, allocations: 15.92 kB / 398.6 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.662e-05/0.2673, allocations: 7.922 kB / 398.6 MB, free: 8.793 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.301e-05/0.2674, allocations: 107.1 kB / 398.7 MB, free: 8.668 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.3e-05/0.2674, allocations: 1.438 kB / 398.7 MB, free: 8.668 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.949e-06/0.2674, allocations: 9.531 kB / 398.7 MB, free: 8.66 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001145/0.2675, allocations: 61.03 kB / 398.8 MB, free: 8.625 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.2675, allocations: 2.312 kB / 398.8 MB, free: 8.625 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.586e-06/0.2675, allocations: 3.938 kB / 398.8 MB, free: 8.621 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.2675, allocations: 1.156 kB / 398.8 MB, free: 8.621 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.943e-05/0.2676, allocations: 29.02 kB / 398.8 MB, free: 8.617 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001003/0.2677, allocations: 127.2 kB / 398.9 MB, free: 8.461 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.072e-05/0.2677, allocations: 43.75 kB / 399 MB, free: 8.434 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.923e-05/0.2678, allocations: 35.67 kB / 399 MB, free: 8.422 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.308e-06/0.2678, allocations: 0 / 399 MB, free: 8.422 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.872e-05/0.2678, allocations: 60.02 kB / 399.1 MB, free: 8.352 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 8.72e-07/0.2678, allocations: 0 / 399.1 MB, free: 8.352 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002775/0.2681, allocations: 192.7 kB / 399.3 MB, free: 8.27 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.246e-05/0.2681, allocations: 79.78 kB / 399.3 MB, free: 8.176 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.873e-05/0.2682, allocations: 110.4 kB / 399.4 MB, free: 8.074 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.657e-06/0.2682, allocations: 27.05 kB / 399.5 MB, free: 8.043 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.18e-05/0.2682, allocations: 94.42 kB / 399.6 MB, free: 7.949 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.755e-05/0.2682, allocations: 9.656 kB / 399.6 MB, free: 7.941 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.026e-05/0.2683, allocations: 20.56 kB / 399.6 MB, free: 7.922 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.937e-05/0.2683, allocations: 314.8 kB / 399.9 MB, free: 7.609 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.93e-05/0.2684, allocations: 24.84 kB / 399.9 MB, free: 7.609 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.152e-05/0.2684, allocations: 29.94 kB / 399.9 MB, free: 7.605 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.614e-05/0.2685, allocations: 116 kB / 400.1 MB, free: 7.531 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2685, allocations: 1.094 kB / 400.1 MB, free: 7.531 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001472/0.2686, allocations: 159.7 kB / 400.2 MB, free: 7.453 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.136e-05/0.2687, allocations: 39.19 kB / 400.3 MB, free: 7.418 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.2687, allocations: 3.938 kB / 400.3 MB, free: 7.414 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.2687, allocations: 0 / 400.3 MB, free: 7.414 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.723e-06/0.2687, allocations: 2 kB / 400.3 MB, free: 7.414 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.2687, allocations: 0 / 400.3 MB, free: 7.414 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.049e-05/0.2687, allocations: 4.984 kB / 400.3 MB, free: 7.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.446e-06/0.2687, allocations: 3.172 kB / 400.3 MB, free: 7.41 MB / 318.1 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 6.929e-05/0.2688, allocations: 151.6 kB / 400.4 MB, free: 7.258 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.166e-05/0.2688, allocations: 7.469 kB / 400.4 MB, free: 7.254 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.409e-05/0.2688, allocations: 10.61 kB / 400.4 MB, free: 7.238 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.2688, allocations: 0.7031 kB / 400.4 MB, free: 7.238 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.2688, allocations: 0 / 400.4 MB, free: 7.238 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.2688, allocations: 0 / 400.4 MB, free: 7.238 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.29e-05/0.2689, allocations: 134.3 kB / 400.6 MB, free: 7.078 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.2689, allocations: 1.438 kB / 400.6 MB, free: 7.078 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.51e-07/0.2689, allocations: 256 / 400.6 MB, free: 7.078 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.2689, allocations: 0 / 400.6 MB, free: 7.078 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.2689, allocations: 10.86 kB / 400.6 MB, free: 7.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.2689, allocations: 1.5 kB / 400.6 MB, free: 7.07 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2689, allocations: 4 kB / 400.6 MB, free: 7.066 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001836/0.2691, allocations: 203.7 kB / 400.8 MB, free: 6.949 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.342e-06/0.2691, allocations: 1.344 kB / 400.8 MB, free: 6.949 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.776e-05/0.2691, allocations: 6.125 kB / 400.8 MB, free: 6.945 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.254e-05/0.2691, allocations: 2.656 kB / 400.8 MB, free: 6.945 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.037e-05/0.2691, allocations: 0.7031 kB / 400.8 MB, free: 6.945 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-06/0.2691, allocations: 4.062 kB / 400.8 MB, free: 6.945 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.857e-05/0.2692, allocations: 93.95 kB / 400.9 MB, free: 6.863 MB / 318.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2692, allocations: 0 / 400.9 MB, free: 6.863 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001931/0.2694, allocations: 12.88 kB / 400.9 MB, free: 6.859 MB / 318.1 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.0002765/0.2696, allocations: 121 kB / 401 MB, free: 6.754 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001399/0.2698, allocations: 125.8 kB / 401.1 MB, free: 6.68 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2698, allocations: 4.062 kB / 401.1 MB, free: 6.676 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.632e-05/0.2698, allocations: 88.36 kB / 401.2 MB, free: 6.609 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001457/0.27, allocations: 4.375 kB / 401.2 MB, free: 6.609 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002517/0.2702, allocations: 171.1 kB / 401.4 MB, free: 6.461 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001051/0.2703, allocations: 0.6807 MB / 402.1 MB, free: 5.766 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.202e-05/0.2703, allocations: 8.594 kB / 402.1 MB, free: 5.758 MB / 318.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2703, allocations: 3.938 kB / 402.1 MB, free: 5.754 MB / 318.1 MB Notification: Performance of Templates: time 0.002519/0.2729, allocations: 0.6798 MB / 402.8 MB, free: 5.691 MB / 318.1 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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 7.219656691886485]