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.001291/0.001292, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00112/0.00112, allocations: 198 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001861, allocations: 63.89 kB / 358.7 MB, free: 12.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2762, allocations: 50.55 MB / 409.2 MB, free: 1.645 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001355/0.2776, allocations: 479.6 kB / 409.7 MB, free: 1.184 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000229/0.2778, allocations: 63.78 kB / 409.7 MB, free: 1.121 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.885e-05/0.2778, allocations: 3.938 kB / 409.7 MB, free: 1.117 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.27e-05/0.2779, allocations: 0 / 409.7 MB, free: 1.117 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.702e-05/0.2779, allocations: 15.98 kB / 409.8 MB, free: 1.102 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001383/0.2781, allocations: 23.91 kB / 409.8 MB, free: 1.078 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.352e-05/0.2782, allocations: 15.98 kB / 409.8 MB, free: 1.062 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.78e-05/0.2782, allocations: 7.984 kB / 409.8 MB, free: 1.055 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.645e-05/0.2783, allocations: 11.98 kB / 409.8 MB, free: 1.043 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.971e-05/0.2783, allocations: 23.92 kB / 409.8 MB, free: 1.02 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.331e-05/0.2783, allocations: 0 / 409.8 MB, free: 1.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.709e-05/0.2784, allocations: 4 kB / 409.9 MB, free: 1.016 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.078e-05/0.2784, allocations: 11.97 kB / 409.9 MB, free: 1.004 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.691e-05/0.2785, allocations: 11.94 kB / 409.9 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.379e-05/0.2786, allocations: 27.92 kB / 409.9 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.2786, allocations: 0 / 409.9 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2786, allocations: 0 / 409.9 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.2786, allocations: 0 / 409.9 MB, free: 0.9648 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.0003083/0.2789, allocations: 357.2 kB / 410.3 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.25e-05/0.2789, allocations: 12.03 kB / 410.3 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.974e-05/0.279, allocations: 0.9375 kB / 410.3 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000102/0.2791, allocations: 176.1 kB / 410.4 MB, free: 348 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.808e-06/0.2791, allocations: 384 / 410.4 MB, free: 348 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.063e-05/0.2791, allocations: 4.375 kB / 410.4 MB, free: 344 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001075/0.2792, allocations: 74.11 kB / 410.5 MB, free: 264 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.001e-06/0.2792, allocations: 192 / 410.5 MB, free: 264 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.008e-05/0.2793, allocations: 3.938 kB / 410.5 MB, free: 260 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.2793, allocations: 3.938 kB / 410.5 MB, free: 256 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.684e-05/0.2793, allocations: 27.98 kB / 410.5 MB, free: 228 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001225/0.2794, allocations: 153.7 kB / 410.7 MB, free: 24 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.145e-05/0.2795, allocations: 46.69 kB / 410.7 MB, free: 15.96 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.218e-05/0.2796, allocations: 44.86 kB / 410.8 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.444e-06/0.2796, allocations: 0 / 410.8 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.759e-05/0.2796, allocations: 56.27 kB / 410.8 MB, free: 15.85 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.002e-06/0.2796, allocations: 0 / 410.8 MB, free: 15.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002605/0.2799, allocations: 187.3 kB / 411 MB, free: 15.65 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.661e-05/0.2799, allocations: 77.11 kB / 411.1 MB, free: 15.56 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.639e-05/0.28, allocations: 113.8 kB / 411.2 MB, free: 15.44 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.225e-05/0.28, allocations: 25.7 kB / 411.2 MB, free: 15.41 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.904e-05/0.2801, allocations: 92.16 kB / 411.3 MB, free: 15.31 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.647e-05/0.2801, allocations: 7.906 kB / 411.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.151e-05/0.2802, allocations: 17.72 kB / 411.4 MB, free: 15.28 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.581e-05/0.2803, allocations: 318.8 kB / 411.7 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.308e-05/0.2803, allocations: 27.94 kB / 411.7 MB, free: 14.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.651e-05/0.2803, allocations: 23.98 kB / 411.7 MB, free: 14.91 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.296e-05/0.2804, allocations: 116.2 kB / 411.8 MB, free: 14.78 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.2804, allocations: 0 / 411.8 MB, free: 14.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001517/0.2806, allocations: 155.6 kB / 412 MB, free: 14.62 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.972e-05/0.2806, allocations: 37.69 kB / 412 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.2806, allocations: 3.938 kB / 412 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.2807, allocations: 3.984 kB / 412 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.12e-07/0.2807, allocations: 0 / 412 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.656e-06/0.2807, allocations: 4 kB / 412 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.738e-05/0.2807, allocations: 0 / 412 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.327e-06/0.2807, allocations: 4.25 kB / 412 MB, free: 14.56 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.846e-05/0.2808, allocations: 159.4 kB / 412.2 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.067e-05/0.2808, allocations: 4.031 kB / 412.2 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.756e-05/0.2808, allocations: 11.84 kB / 412.2 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.2808, allocations: 0 / 412.2 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.2809, allocations: 0 / 412.2 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.2809, allocations: 0 / 412.2 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.626e-05/0.281, allocations: 166.8 kB / 412.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.281, allocations: 0 / 412.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.281, allocations: 3.938 kB / 412.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.281, allocations: 0 / 412.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.11e-05/0.281, allocations: 7.938 kB / 412.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.281, allocations: 3.938 kB / 412.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.281, allocations: 4 kB / 412.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001974/0.2812, allocations: 190.8 kB / 412.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.833e-05/0.2812, allocations: 77.11 kB / 412.6 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.675e-05/0.2813, allocations: 7.938 kB / 412.7 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.181e-05/0.2813, allocations: 0 / 412.7 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.147e-05/0.2813, allocations: 4 kB / 412.7 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.849e-06/0.2813, allocations: 0 / 412.7 MB, free: 13.81 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.419e-05/0.2814, allocations: 99.23 kB / 412.8 MB, free: 13.71 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2814, allocations: 0 / 412.8 MB, free: 13.71 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002001/0.2816, allocations: 16 kB / 412.8 MB, free: 13.7 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.0002101/0.2818, allocations: 121.5 kB / 412.9 MB, free: 13.58 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001459/0.2819, allocations: 127.4 kB / 413 MB, free: 13.45 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.282, allocations: 4.062 kB / 413 MB, free: 13.44 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.367e-05/0.282, allocations: 99.38 kB / 413.1 MB, free: 13.33 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000131/0.2822, allocations: 4 kB / 413.1 MB, free: 13.33 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000209/0.2824, allocations: 141 kB / 413.3 MB, free: 13.16 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002138/0.2826, allocations: 0.6768 MB / 413.9 MB, free: 12.46 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.059e-06/0.2826, allocations: 0 / 413.9 MB, free: 12.46 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.758e-06/0.2826, allocations: 15.38 kB / 413.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2826, allocations: 0 / 413.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of Templates: time 0.002486/0.2851, allocations: 0.6814 MB / 414.6 MB, free: 11.78 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