Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001428/0.001428, allocations: 114.9 kB / 19.04 MB, free: 3.281 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001265/0.001265, allocations: 190 kB / 22.21 MB, free: 112 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 225.6 MB / 250.8 MB, free: 13.39 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001972/0.001972, allocations: 51.92 kB / 368.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2677/0.2697, allocations: 52.13 MB / 420.8 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001491/0.2712, allocations: 0.4955 MB / 421.3 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002374/0.2714, allocations: 59.8 kB / 421.4 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.822e-05/0.2714, allocations: 0 / 421.4 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.165e-05/0.2714, allocations: 7.938 kB / 421.4 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.965e-05/0.2715, allocations: 11.98 kB / 421.4 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001451/0.2717, allocations: 19.97 kB / 421.4 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.695e-05/0.2717, allocations: 27.91 kB / 421.4 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.764e-05/0.2718, allocations: 0 / 421.4 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.032e-05/0.2718, allocations: 11.98 kB / 421.5 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.494e-05/0.2719, allocations: 27.91 kB / 421.5 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.341e-05/0.2719, allocations: 0 / 421.5 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.031e-05/0.2719, allocations: 11.98 kB / 421.5 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.174e-05/0.272, allocations: 0 / 421.5 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.039e-05/0.272, allocations: 11.94 kB / 421.5 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 8.824e-05/0.2721, allocations: 27.91 kB / 421.5 MB, free: 14.4 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.2721, allocations: 0 / 421.5 MB, free: 14.4 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2721, allocations: 0 / 421.5 MB, free: 14.4 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.458e-06/0.2721, allocations: 4 kB / 421.5 MB, free: 14.4 MB / 334.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.000377/0.2725, allocations: 366.3 kB / 421.9 MB, free: 13.99 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.246e-05/0.2725, allocations: 8.031 kB / 421.9 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.108e-05/0.2725, allocations: 0.9375 kB / 421.9 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001373/0.2727, allocations: 176.3 kB / 422.1 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.133e-05/0.2727, allocations: 384 / 422.1 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.352e-05/0.2727, allocations: 12.38 kB / 422.1 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001095/0.2728, allocations: 58.19 kB / 422.2 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/0.2728, allocations: 192 / 422.2 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.608e-06/0.2728, allocations: 3.938 kB / 422.2 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.457e-06/0.2728, allocations: 0 / 422.2 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.082e-05/0.2729, allocations: 27.98 kB / 422.2 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001517/0.273, allocations: 157.6 kB / 422.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.613e-05/0.2731, allocations: 46.61 kB / 422.4 MB, free: 13.4 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.796e-05/0.2731, allocations: 32.92 kB / 422.4 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.025e-06/0.2731, allocations: 0 / 422.4 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.281e-05/0.2732, allocations: 68.2 kB / 422.5 MB, free: 13.29 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.92e-07/0.2732, allocations: 3.938 kB / 422.5 MB, free: 13.28 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003028/0.2735, allocations: 187.3 kB / 422.7 MB, free: 13.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.181e-05/0.2735, allocations: 81.11 kB / 422.7 MB, free: 12.99 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.397e-05/0.2736, allocations: 109.8 kB / 422.9 MB, free: 12.87 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.573e-05/0.2736, allocations: 25.7 kB / 422.9 MB, free: 12.84 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.376e-05/0.2737, allocations: 92.17 kB / 423 MB, free: 12.75 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.746e-05/0.2737, allocations: 7.906 kB / 423 MB, free: 12.74 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.686e-05/0.2737, allocations: 21.72 kB / 423 MB, free: 12.71 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.2739, allocations: 314.8 kB / 423.3 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.42e-05/0.2739, allocations: 23.98 kB / 423.3 MB, free: 12.37 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.052e-05/0.2739, allocations: 31.98 kB / 423.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.871e-05/0.274, allocations: 116.2 kB / 423.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.274, allocations: 0 / 423.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001636/0.2742, allocations: 155.6 kB / 423.6 MB, free: 12.05 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.773e-05/0.2742, allocations: 37.7 kB / 423.7 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.2742, allocations: 7.922 kB / 423.7 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.2743, allocations: 0 / 423.7 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-07/0.2743, allocations: 0 / 423.7 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.617e-06/0.2743, allocations: 0 / 423.7 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.891e-05/0.2743, allocations: 4 kB / 423.7 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.793e-06/0.2743, allocations: 0 / 423.7 MB, free: 11.99 MB / 334.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 0.0001003/0.2744, allocations: 147.5 kB / 423.8 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.227e-05/0.2744, allocations: 11.98 kB / 423.8 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.871e-05/0.2744, allocations: 11.84 kB / 423.8 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.2744, allocations: 3.984 kB / 423.8 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.2744, allocations: 0 / 423.8 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.793e-06/0.2744, allocations: 3.938 kB / 423.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001157/0.2745, allocations: 161.6 kB / 424 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.12e-07/0.2745, allocations: 0 / 424 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.2745, allocations: 0 / 424 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.2745, allocations: 0 / 424 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.342e-05/0.2746, allocations: 15.86 kB / 424 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.2746, allocations: 3.984 kB / 424 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2746, allocations: 4 kB / 424 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002087/0.2748, allocations: 194.8 kB / 424.2 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.216e-05/0.2748, allocations: 81.06 kB / 424.3 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.669e-05/0.2748, allocations: 8.188 kB / 424.3 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.336e-05/0.2748, allocations: 4 kB / 424.3 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.476e-05/0.2749, allocations: 7.984 kB / 424.3 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.598e-06/0.2749, allocations: 0 / 424.3 MB, free: 11.23 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.331e-05/0.2749, allocations: 91.31 kB / 424.4 MB, free: 11.14 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2749, allocations: 0 / 424.4 MB, free: 11.14 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001857/0.2751, allocations: 15.94 kB / 424.4 MB, free: 11.12 MB / 334.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.0002866/0.2754, allocations: 122.4 kB / 424.5 MB, free: 11.01 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001703/0.2756, allocations: 115.4 kB / 424.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2756, allocations: 4.062 kB / 424.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.257e-05/0.2756, allocations: 91.38 kB / 424.7 MB, free: 10.78 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001304/0.2758, allocations: 4 kB / 424.8 MB, free: 10.78 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002657/0.276, allocations: 160.8 kB / 424.9 MB, free: 10.59 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002945/0.2763, allocations: 0.6844 MB / 425.6 MB, free: 9.883 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.879e-06/0.2763, allocations: 0 / 425.6 MB, free: 9.883 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.009e-05/0.2763, allocations: 7.438 kB / 425.6 MB, free: 9.875 MB / 334.1 MB Notification: Performance of SimCode: time 3.5e-07/0.2763, allocations: 0 / 425.6 MB, free: 9.875 MB / 334.1 MB Notification: Performance of Templates: time 0.002953/0.2793, allocations: 0.6927 MB / 426.3 MB, free: 9.199 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 4.435002616606653]