Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009528/0.0009528, allocations: 91.67 kB / 21.2 MB, free: 3.367 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009568/0.0009568, allocations: 156.5 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9448/0.9448, allocations: 177 MB / 204.8 MB, free: 5.574 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.983e-06/1.983e-06, allocations: 0 / 272.9 MB, free: 1.484 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.19e-05/3.388e-05, allocations: 2.312 kB / 272.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001231/0.001265, allocations: 0.4898 MB / 273.4 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002363/0.001501, allocations: 67.73 kB / 273.4 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.307e-05/0.001534, allocations: 3.938 kB / 273.4 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.556e-05/0.00158, allocations: 3.938 kB / 273.4 MB, free: 0.918 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.613e-05/0.001666, allocations: 19.95 kB / 273.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001805/0.001846, allocations: 15.98 kB / 273.5 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001016/0.001948, allocations: 23.92 kB / 273.5 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.409e-05/0.001992, allocations: 3.984 kB / 273.5 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.492e-05/0.002037, allocations: 11.98 kB / 273.5 MB, free: 0.8438 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.922e-05/0.002116, allocations: 23.97 kB / 273.5 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.898e-05/0.002135, allocations: 4 kB / 273.5 MB, free: 0.8164 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.741e-05/0.002182, allocations: 15.98 kB / 273.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.695e-05/0.002229, allocations: 7.938 kB / 273.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.889e-05/0.002258, allocations: 0 / 273.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001279/0.002386, allocations: 31.91 kB / 273.6 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.002389, allocations: 0 / 273.6 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.00239, allocations: 3.938 kB / 273.6 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.002395, allocations: 0 / 273.6 MB, free: 0.7578 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.0003624/0.002757, allocations: 386.3 kB / 274 MB, free: 344 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.002801, allocations: 15.98 kB / 274 MB, free: 328 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.519e-05/0.002846, allocations: 8.891 kB / 274 MB, free: 320 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.838e-05/0.002934, allocations: 108.6 kB / 274.1 MB, free: 184 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.238e-05/0.002947, allocations: 8.375 kB / 274.1 MB, free: 176 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.737e-06/0.002955, allocations: 384 / 274.1 MB, free: 176 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001046/0.00306, allocations: 71.89 kB / 274.2 MB, free: 92 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.003067, allocations: 192 / 274.2 MB, free: 92 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.003077, allocations: 384 / 274.2 MB, free: 92 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.317e-06/0.003087, allocations: 4.375 kB / 274.2 MB, free: 88 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.384e-05/0.00311, allocations: 33.64 kB / 274.2 MB, free: 48 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001403/0.003251, allocations: 116.6 kB / 274.3 MB, free: 15.9 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.01e-05/0.003321, allocations: 60.77 kB / 274.4 MB, free: 15.82 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.862e-05/0.003349, allocations: 45.5 kB / 274.4 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.019e-06/0.003354, allocations: 8 kB / 274.4 MB, free: 15.76 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.963e-05/0.003394, allocations: 63.03 kB / 274.5 MB, free: 15.68 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 1.402e-06/0.003396, allocations: 0 / 274.5 MB, free: 15.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002454/0.003641, allocations: 154.7 kB / 274.7 MB, free: 15.5 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.393e-05/0.003685, allocations: 85.11 kB / 274.7 MB, free: 15.4 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.644e-05/0.003771, allocations: 169.9 kB / 274.9 MB, free: 15.22 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.001e-05/0.003781, allocations: 25.7 kB / 274.9 MB, free: 15.19 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.954e-05/0.003821, allocations: 134.9 kB / 275.1 MB, free: 15.05 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.893e-05/0.00384, allocations: 7.891 kB / 275.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.376e-05/0.003873, allocations: 31.36 kB / 275.1 MB, free: 15 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.004005, allocations: 0.4884 MB / 275.6 MB, free: 14.5 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.665e-05/0.004032, allocations: 33.7 kB / 275.6 MB, free: 14.46 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.116e-05/0.004053, allocations: 37.62 kB / 275.7 MB, free: 14.42 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.276e-05/0.004106, allocations: 79.08 kB / 275.7 MB, free: 14.33 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.004108, allocations: 0 / 275.7 MB, free: 14.33 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001017/0.00421, allocations: 113.1 kB / 275.8 MB, free: 14.2 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.029e-05/0.00424, allocations: 36.83 kB / 275.9 MB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.004244, allocations: 0 / 275.9 MB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.004258, allocations: 3.984 kB / 275.9 MB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.286e-06/0.004261, allocations: 3.938 kB / 275.9 MB, free: 14.15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.004266, allocations: 0 / 275.9 MB, free: 14.15 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.535e-05/0.004281, allocations: 11.95 kB / 275.9 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.316e-06/0.004289, allocations: 4.188 kB / 275.9 MB, free: 14.14 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 8.312e-05/0.004373, allocations: 190.5 kB / 276.1 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.171e-05/0.004384, allocations: 11.98 kB / 276.1 MB, free: 13.92 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.434e-05/0.004399, allocations: 7.984 kB / 276.1 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.004402, allocations: 4 kB / 276.1 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.004405, allocations: 0 / 276.1 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.004409, allocations: 3.938 kB / 276.1 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.968e-05/0.004488, allocations: 120.6 kB / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.004489, allocations: 0 / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-07/0.00449, allocations: 4 kB / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.004491, allocations: 0 / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.847e-06/0.0045, allocations: 4 kB / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.004501, allocations: 0 / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.004502, allocations: 0 / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001479/0.00465, allocations: 179.7 kB / 276.4 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.027e-05/0.00466, allocations: 4 kB / 276.4 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.593e-05/0.004676, allocations: 0 / 276.4 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.175e-06/0.004684, allocations: 4 kB / 276.4 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.61e-05/0.0047, allocations: 7.922 kB / 276.4 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.299e-06/0.004705, allocations: 0 / 276.4 MB, free: 13.52 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.937e-05/0.004754, allocations: 135.2 kB / 276.6 MB, free: 13.39 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.004754, allocations: 0 / 276.6 MB, free: 13.39 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001416/0.004896, allocations: 11.94 kB / 276.6 MB, free: 13.38 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.0002883/0.005184, allocations: 133.4 kB / 276.7 MB, free: 13.24 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001372/0.005321, allocations: 142.5 kB / 276.8 MB, free: 13.07 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.005323, allocations: 0 / 276.8 MB, free: 13.07 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.766e-05/0.005371, allocations: 108.8 kB / 277 MB, free: 12.95 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001144/0.005485, allocations: 4 kB / 277 MB, free: 12.94 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002281/0.005713, allocations: 151.9 kB / 277.1 MB, free: 12.76 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.158e-05/0.005745, allocations: 59.34 kB / 277.2 MB, free: 12.68 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.27e-06/0.00575, allocations: 0 / 277.2 MB, free: 12.68 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.332e-05/0.005763, allocations: 20.38 kB / 277.2 MB, free: 12.66 MB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.005764, allocations: 0 / 277.2 MB, free: 12.66 MB / 266.7 MB Notification: Performance of Templates: time 0.002556/0.00832, allocations: 0.7523 MB / 277.9 MB, free: 11.92 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.488583150319755]