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.001865/0.001865, allocations: 107.5 kB / 20.44 MB, free: 1.066 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.001636/0.001636, allocations: 187.7 kB / 23.7 MB, free: 4.191 MB / 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.451/1.451, allocations: 225.7 MB / 252.5 MB, free: 12.84 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.00183/0.00183, allocations: 47.91 kB / 370.9 MB, free: 9.219 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.267, allocations: 52.19 MB / 423 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.00183/0.2688, allocations: 496.2 kB / 423.5 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002842/0.2691, allocations: 59.8 kB / 423.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.829e-05/0.2691, allocations: 0 / 423.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.458e-05/0.2691, allocations: 3.938 kB / 423.6 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.55e-05/0.2692, allocations: 15.98 kB / 423.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001536/0.2694, allocations: 23.91 kB / 423.6 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.575e-05/0.2694, allocations: 19.98 kB / 423.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.212e-05/0.2695, allocations: 0 / 423.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.648e-05/0.2695, allocations: 15.92 kB / 423.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.041e-05/0.2696, allocations: 27.95 kB / 423.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.847e-05/0.2696, allocations: 0 / 423.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.012e-05/0.2697, allocations: 12 kB / 423.7 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.063e-05/0.2697, allocations: 3.938 kB / 423.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.809e-05/0.2697, allocations: 4 kB / 423.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 9.774e-05/0.2698, allocations: 31.56 kB / 423.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.2698, allocations: 4 kB / 423.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2698, allocations: 0 / 423.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.2698, allocations: 0 / 423.7 MB, free: 13.77 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.0003893/0.2702, allocations: 290.5 kB / 424 MB, free: 13.45 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.277e-05/0.2703, allocations: 8.031 kB / 424 MB, free: 13.44 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.616e-05/0.2703, allocations: 8.875 kB / 424 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001261/0.2704, allocations: 118.4 kB / 424.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.277e-05/0.2704, allocations: 384 / 424.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.456e-06/0.2705, allocations: 384 / 424.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001984/0.2707, allocations: 91.88 kB / 424.3 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.144e-06/0.2707, allocations: 4.188 kB / 424.3 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.535e-05/0.2707, allocations: 3.938 kB / 424.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.2707, allocations: 0 / 424.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.266e-05/0.2707, allocations: 57.69 kB / 424.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001519/0.2709, allocations: 105.4 kB / 424.4 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001023/0.271, allocations: 72.25 kB / 424.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.155e-05/0.2711, allocations: 62.62 kB / 424.6 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.803e-06/0.2711, allocations: 3.938 kB / 424.6 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.047e-05/0.2711, allocations: 56.27 kB / 424.6 MB, free: 12.76 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.2711, allocations: 0 / 424.6 MB, free: 12.76 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004287/0.2716, allocations: 246.7 kB / 424.9 MB, free: 12.49 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.219e-05/0.2716, allocations: 85.09 kB / 424.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001478/0.2718, allocations: 117.8 kB / 425 MB, free: 12.27 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.802e-05/0.2718, allocations: 29.64 kB / 425.1 MB, free: 12.23 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.172e-05/0.2718, allocations: 88.14 kB / 425.2 MB, free: 12.14 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.962e-05/0.2719, allocations: 7.938 kB / 425.2 MB, free: 12.13 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.668e-05/0.2719, allocations: 17.72 kB / 425.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.2721, allocations: 318.8 kB / 425.5 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.661e-05/0.2721, allocations: 53.69 kB / 425.6 MB, free: 11.73 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.418e-05/0.2722, allocations: 61.62 kB / 425.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001203/0.2723, allocations: 120.3 kB / 425.7 MB, free: 11.53 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2723, allocations: 4 kB / 425.7 MB, free: 11.53 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001957/0.2725, allocations: 181.2 kB / 425.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.889e-05/0.2725, allocations: 37.69 kB / 425.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.928e-06/0.2725, allocations: 0 / 425.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.2725, allocations: 7.938 kB / 426 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.81e-07/0.2725, allocations: 0 / 426 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.2725, allocations: 0 / 426 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.786e-05/0.2726, allocations: 0 / 426 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.378e-06/0.2726, allocations: 4 kB / 426 MB, free: 11.28 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.0001203/0.2727, allocations: 147.5 kB / 426.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.639e-05/0.2727, allocations: 15.92 kB / 426.1 MB, free: 11.1 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.513e-05/0.2727, allocations: 7.938 kB / 426.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.2727, allocations: 3.938 kB / 426.1 MB, free: 11.08 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.2727, allocations: 0 / 426.1 MB, free: 11.08 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.2727, allocations: 0 / 426.1 MB, free: 11.08 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.294e-05/0.2728, allocations: 113.2 kB / 426.2 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.2728, allocations: 0 / 426.2 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.2728, allocations: 0 / 426.2 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.2728, allocations: 0 / 426.2 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.2728, allocations: 4 kB / 426.2 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.549e-06/0.2728, allocations: 3.984 kB / 426.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.2728, allocations: 7.938 kB / 426.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002517/0.2731, allocations: 224.5 kB / 426.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.375e-06/0.2731, allocations: 3.953 kB / 426.5 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.766e-05/0.2731, allocations: 4 kB / 426.5 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.213e-05/0.2731, allocations: 256 / 426.5 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.38e-05/0.2732, allocations: 7.938 kB / 426.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.413e-06/0.2732, allocations: 4 kB / 426.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.723e-05/0.2732, allocations: 91.27 kB / 426.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2732, allocations: 0 / 426.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001984/0.2734, allocations: 15.94 kB / 426.6 MB, free: 10.55 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.0003035/0.2737, allocations: 133.6 kB / 426.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002185/0.2739, allocations: 182.8 kB / 426.9 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2739, allocations: 0 / 426.9 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001057/0.2741, allocations: 117.1 kB / 427 MB, free: 10.09 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000138/0.2742, allocations: 5.094 kB / 427 MB, free: 10.09 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003363/0.2745, allocations: 173.3 kB / 427.2 MB, free: 9.891 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.45e-05/0.2746, allocations: 75.19 kB / 427.3 MB, free: 9.797 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.049e-06/0.2746, allocations: 0 / 427.3 MB, free: 9.797 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.595e-05/0.2746, allocations: 7.438 kB / 427.3 MB, free: 9.789 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2746, allocations: 0 / 427.3 MB, free: 9.789 MB / 334.1 MB Notification: Performance of Templates: time 0.003237/0.2779, allocations: 0.7074 MB / 428 MB, free: 9.094 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.354224709793925]