Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_4.1.0-beta.om_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: 114 kB / 17.83 MB, free: 5.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001307/0.001307, allocations: 205.2 kB / 18.78 MB, free: 4.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.46/1.46, allocations: 230.4 MB / 250 MB, free: 9.082 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 79.75 kB / 367.3 MB, free: 7.082 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2702/0.2721, allocations: 53.3 MB / 420.6 MB, free: 8.375 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001399/0.2735, allocations: 488.4 kB / 421.1 MB, free: 7.902 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002132/0.2737, allocations: 59.8 kB / 421.2 MB, free: 7.844 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.465e-05/0.2737, allocations: 0 / 421.2 MB, free: 7.844 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.146e-05/0.2738, allocations: 3.938 kB / 421.2 MB, free: 7.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.847e-05/0.2738, allocations: 11.98 kB / 421.2 MB, free: 7.828 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001085/0.2739, allocations: 19.97 kB / 421.2 MB, free: 7.809 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.313e-05/0.274, allocations: 23.97 kB / 421.2 MB, free: 7.785 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.342e-05/0.274, allocations: 4 kB / 421.2 MB, free: 7.781 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.527e-05/0.274, allocations: 15.92 kB / 421.2 MB, free: 7.766 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.222e-05/0.2741, allocations: 27.91 kB / 421.3 MB, free: 7.738 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.898e-06/0.2741, allocations: 0 / 421.3 MB, free: 7.738 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.979e-05/0.2741, allocations: 11.98 kB / 421.3 MB, free: 7.727 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.356e-05/0.2742, allocations: 4 kB / 421.3 MB, free: 7.723 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.482e-05/0.2742, allocations: 7.938 kB / 421.3 MB, free: 7.715 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 6.578e-05/0.2742, allocations: 31.42 kB / 421.3 MB, free: 7.688 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.2742, allocations: 0 / 421.3 MB, free: 7.688 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2742, allocations: 0 / 421.3 MB, free: 7.688 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.676e-06/0.2743, allocations: 4 kB / 421.3 MB, free: 7.684 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.0002899/0.2745, allocations: 361 kB / 421.7 MB, free: 7.277 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.373e-05/0.2746, allocations: 12.03 kB / 421.7 MB, free: 7.266 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.203e-05/0.2746, allocations: 4.891 kB / 421.7 MB, free: 7.262 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001354/0.2747, allocations: 172.3 kB / 421.9 MB, free: 7.055 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.923e-06/0.2747, allocations: 384 / 421.9 MB, free: 7.055 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.13e-05/0.2747, allocations: 384 / 421.9 MB, free: 7.055 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001029/0.2748, allocations: 62.19 kB / 421.9 MB, free: 6.988 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.2749, allocations: 4.172 kB / 421.9 MB, free: 6.984 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.789e-06/0.2749, allocations: 11.88 kB / 421.9 MB, free: 6.973 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.476e-06/0.2749, allocations: 0 / 421.9 MB, free: 6.973 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.976e-05/0.2749, allocations: 28 kB / 422 MB, free: 6.945 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001415/0.275, allocations: 153.7 kB / 422.1 MB, free: 6.746 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.358e-05/0.2751, allocations: 42.61 kB / 422.2 MB, free: 6.695 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.653e-05/0.2751, allocations: 28.92 kB / 422.2 MB, free: 6.664 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.747e-06/0.2752, allocations: 3.984 kB / 422.2 MB, free: 6.66 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.804e-05/0.2752, allocations: 76.25 kB / 422.3 MB, free: 6.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.2752, allocations: 7.875 kB / 422.3 MB, free: 6.562 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.000268/0.2755, allocations: 183.2 kB / 422.4 MB, free: 6.371 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.251e-05/0.2755, allocations: 85.11 kB / 422.5 MB, free: 6.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.2756, allocations: 109.8 kB / 422.6 MB, free: 6.152 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.028e-05/0.2756, allocations: 25.7 kB / 422.7 MB, free: 6.121 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.777e-05/0.2757, allocations: 80.14 kB / 422.7 MB, free: 6.039 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.665e-05/0.2757, allocations: 7.953 kB / 422.7 MB, free: 6.031 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.704e-05/0.2757, allocations: 25.73 kB / 422.8 MB, free: 6 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.2759, allocations: 314.8 kB / 423.1 MB, free: 5.684 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.917e-05/0.2759, allocations: 27.98 kB / 423.1 MB, free: 5.656 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.183e-05/0.2759, allocations: 27.98 kB / 423.1 MB, free: 5.629 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001037/0.276, allocations: 120.2 kB / 423.3 MB, free: 5.496 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.276, allocations: 0 / 423.3 MB, free: 5.496 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000164/0.2762, allocations: 151.4 kB / 423.4 MB, free: 5.336 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.21e-05/0.2762, allocations: 33.7 kB / 423.4 MB, free: 5.297 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.2762, allocations: 3.938 kB / 423.4 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.2763, allocations: 4.062 kB / 423.4 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.62e-07/0.2763, allocations: 0 / 423.4 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.827e-06/0.2763, allocations: 0 / 423.4 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.069e-05/0.2763, allocations: 7.953 kB / 423.4 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-06/0.2763, allocations: 3.984 kB / 423.5 MB, free: 5.277 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 9.764e-05/0.2764, allocations: 139.5 kB / 423.6 MB, free: 5.125 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.544e-05/0.2764, allocations: 8 kB / 423.6 MB, free: 5.117 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.937e-05/0.2764, allocations: 11.83 kB / 423.6 MB, free: 5.094 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.2764, allocations: 0 / 423.6 MB, free: 5.094 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.2764, allocations: 8 kB / 423.6 MB, free: 5.086 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.2764, allocations: 0 / 423.6 MB, free: 5.086 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001152/0.2765, allocations: 157.6 kB / 423.8 MB, free: 4.883 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.02e-07/0.2765, allocations: 3.938 kB / 423.8 MB, free: 4.879 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.134e-06/0.2766, allocations: 7.938 kB / 423.8 MB, free: 4.871 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.2766, allocations: 0 / 423.8 MB, free: 4.871 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.2766, allocations: 3.938 kB / 423.8 MB, free: 4.867 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.2766, allocations: 3.984 kB / 423.8 MB, free: 4.863 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.2766, allocations: 0 / 423.8 MB, free: 4.863 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002191/0.2768, allocations: 203 kB / 424 MB, free: 4.641 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.044e-05/0.2768, allocations: 77.11 kB / 424.1 MB, free: 4.547 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.333e-05/0.2768, allocations: 15.92 kB / 424.1 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.153e-05/0.2769, allocations: 0 / 424.1 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.413e-05/0.2769, allocations: 0 / 424.1 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.753e-06/0.2769, allocations: 4 kB / 424.1 MB, free: 4.527 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.449e-05/0.2769, allocations: 91.27 kB / 424.2 MB, free: 4.438 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2769, allocations: 0 / 424.2 MB, free: 4.438 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001886/0.2771, allocations: 11.94 kB / 424.2 MB, free: 4.426 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.0002817/0.2774, allocations: 121.9 kB / 424.3 MB, free: 4.312 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001641/0.2776, allocations: 123.3 kB / 424.4 MB, free: 4.18 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.2776, allocations: 4 kB / 424.4 MB, free: 4.176 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.868e-05/0.2776, allocations: 83.39 kB / 424.5 MB, free: 4.082 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001376/0.2778, allocations: 12.06 kB / 424.5 MB, free: 4.07 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002491/0.278, allocations: 143.6 kB / 424.7 MB, free: 3.906 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002943/0.2783, allocations: 0.6807 MB / 425.3 MB, free: 3.199 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.98e-06/0.2783, allocations: 0 / 425.3 MB, free: 3.199 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.033e-05/0.2783, allocations: 7.438 kB / 425.3 MB, free: 3.191 MB / 334.1 MB Notification: Performance of SimCode: time 3e-07/0.2783, allocations: 0 / 425.3 MB, free: 3.191 MB / 334.1 MB Notification: Performance of Templates: time 0.002955/0.2813, allocations: 0.6853 MB / 426 MB, free: 2.516 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches