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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001322/0.001322, allocations: 117.6 kB / 17.78 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001274/0.001274, allocations: 208.7 kB / 18.73 MB, free: 4.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001126/0.001126, allocations: 59.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2368/0.238, allocations: 50.54 MB / 409.2 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001381/0.2394, allocations: 484.5 kB / 409.7 MB, free: 1.086 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002304/0.2396, allocations: 59.8 kB / 409.8 MB, free: 1.027 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.498e-05/0.2397, allocations: 0 / 409.8 MB, free: 1.027 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.407e-05/0.2397, allocations: 3.984 kB / 409.8 MB, free: 1.023 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.021e-05/0.2398, allocations: 11.98 kB / 409.8 MB, free: 1.012 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001437/0.2399, allocations: 23.92 kB / 409.8 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.782e-05/0.24, allocations: 27.95 kB / 409.8 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.756e-05/0.24, allocations: 0 / 409.8 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.697e-05/0.2401, allocations: 8 kB / 409.8 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.613e-05/0.2402, allocations: 35.89 kB / 409.9 MB, free: 0.918 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.456e-05/0.2402, allocations: 0 / 409.9 MB, free: 0.918 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.84e-05/0.2402, allocations: 4 kB / 409.9 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.635e-05/0.2403, allocations: 4 kB / 409.9 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.61e-05/0.2403, allocations: 11.88 kB / 409.9 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.899e-05/0.2404, allocations: 31.91 kB / 409.9 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2404, allocations: 0 / 409.9 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2404, allocations: 4 kB / 409.9 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.2404, allocations: 0 / 409.9 MB, free: 0.8633 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.0003219/0.2407, allocations: 365.1 kB / 410.3 MB, free: 460 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.096e-05/0.2408, allocations: 8.031 kB / 410.3 MB, free: 452 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.434e-05/0.2408, allocations: 8.938 kB / 410.3 MB, free: 444 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001154/0.2409, allocations: 168.1 kB / 410.5 MB, free: 240 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.191e-05/0.241, allocations: 8.312 kB / 410.5 MB, free: 232 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.606e-06/0.241, allocations: 384 / 410.5 MB, free: 232 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001168/0.2411, allocations: 62.23 kB / 410.5 MB, free: 164 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.632e-06/0.2411, allocations: 192 / 410.5 MB, free: 164 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.2411, allocations: 7.938 kB / 410.5 MB, free: 156 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.087e-06/0.2411, allocations: 0 / 410.5 MB, free: 156 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.651e-05/0.2412, allocations: 27.98 kB / 410.6 MB, free: 128 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001437/0.2413, allocations: 157.7 kB / 410.7 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.878e-05/0.2414, allocations: 46.5 kB / 410.8 MB, free: 15.87 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.593e-05/0.2414, allocations: 32.92 kB / 410.8 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.214e-06/0.2414, allocations: 11.98 kB / 410.8 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.603e-05/0.2415, allocations: 56.27 kB / 410.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.2415, allocations: 0 / 410.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002507/0.2417, allocations: 187.2 kB / 411 MB, free: 15.55 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.903e-05/0.2418, allocations: 81.11 kB / 411.1 MB, free: 15.46 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.185e-05/0.2419, allocations: 113.8 kB / 411.2 MB, free: 15.34 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.221e-05/0.2419, allocations: 25.7 kB / 411.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.181e-05/0.242, allocations: 88.14 kB / 411.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.606e-05/0.242, allocations: 7.938 kB / 411.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.285e-05/0.242, allocations: 21.7 kB / 411.4 MB, free: 15.18 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.856e-05/0.2421, allocations: 314.8 kB / 411.7 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.161e-05/0.2422, allocations: 23.98 kB / 411.7 MB, free: 14.84 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.842e-05/0.2422, allocations: 31.98 kB / 411.7 MB, free: 14.81 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.528e-05/0.2423, allocations: 116.2 kB / 411.8 MB, free: 14.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.2423, allocations: 0 / 411.8 MB, free: 14.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001446/0.2425, allocations: 151.3 kB / 412 MB, free: 14.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.176e-05/0.2425, allocations: 37.7 kB / 412 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.2425, allocations: 8 kB / 412 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.2425, allocations: 3.984 kB / 412 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.042e-06/0.2425, allocations: 0 / 412 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.2425, allocations: 0 / 412 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.858e-05/0.2426, allocations: 4 kB / 412 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.043e-06/0.2426, allocations: 0 / 412 MB, free: 14.46 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 8.289e-05/0.2427, allocations: 151.4 kB / 412.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.234e-05/0.2427, allocations: 4 kB / 412.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.752e-05/0.2427, allocations: 11.84 kB / 412.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-06/0.2427, allocations: 7.938 kB / 412.2 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.2427, allocations: 256 / 412.2 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-06/0.2427, allocations: 0 / 412.2 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.138e-05/0.2428, allocations: 166.8 kB / 412.4 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.2428, allocations: 0 / 412.4 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.969e-06/0.2429, allocations: 3.984 kB / 412.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.2429, allocations: 0 / 412.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.527e-06/0.2429, allocations: 3.938 kB / 412.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.2429, allocations: 4 kB / 412.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.2429, allocations: 0 / 412.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001922/0.2431, allocations: 202.7 kB / 412.6 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.679e-05/0.2431, allocations: 77.11 kB / 412.7 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.662e-05/0.2432, allocations: 7.938 kB / 412.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.313e-05/0.2432, allocations: 4 kB / 412.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.365e-06/0.2432, allocations: 0 / 412.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.143e-06/0.2432, allocations: 4 kB / 412.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.938e-05/0.2432, allocations: 87.27 kB / 412.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2433, allocations: 0 / 412.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001919/0.2435, allocations: 16.03 kB / 412.8 MB, free: 13.6 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.0002327/0.2437, allocations: 131.1 kB / 412.9 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001433/0.2438, allocations: 127.4 kB / 413 MB, free: 13.34 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2439, allocations: 0 / 413 MB, free: 13.34 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.255e-05/0.2439, allocations: 99.39 kB / 413.1 MB, free: 13.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001307/0.2441, allocations: 8.062 kB / 413.1 MB, free: 13.23 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000204/0.2443, allocations: 137 kB / 413.3 MB, free: 13.07 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002164/0.2445, allocations: 0.6807 MB / 414 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.358e-06/0.2445, allocations: 0 / 414 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.756e-06/0.2445, allocations: 7.438 kB / 414 MB, free: 12.35 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2445, allocations: 0 / 414 MB, free: 12.35 MB / 334.1 MB Notification: Performance of Templates: time 0.002548/0.2471, allocations: 0.6821 MB / 414.6 MB, free: 11.68 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches