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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.28/1.28, allocations: 223.2 MB / 240.3 MB, free: 11.85 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008348/0.0008348, allocations: 100 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002195/0.0002196, allocations: 7.938 kB / 351.1 MB, free: 15.31 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2211/0.2214, allocations: 50.41 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09878/0.3202, allocations: 74.95 MB / 476.4 MB, free: 5.543 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002222/0.3205, allocations: 59.97 kB / 476.5 MB, free: 5.484 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00192/0.3224, allocations: 0.8335 MB / 477.3 MB, free: 4.652 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3224, allocations: 5 kB / 477.3 MB, free: 4.648 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.3224, allocations: 0 / 477.3 MB, free: 4.648 MB / 346.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.0002891/0.3227, allocations: 360.2 kB / 477.7 MB, free: 4.246 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.3228, allocations: 8.031 kB / 477.7 MB, free: 4.238 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.728e-05/0.3228, allocations: 7.953 kB / 477.7 MB, free: 4.23 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001223/0.3229, allocations: 171 kB / 477.9 MB, free: 4.023 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.323, allocations: 4 kB / 477.9 MB, free: 4.02 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.699e-05/0.323, allocations: 0 / 477.9 MB, free: 4.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001868/0.3232, allocations: 73.64 kB / 477.9 MB, free: 3.941 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.3232, allocations: 4 kB / 477.9 MB, free: 3.938 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.207e-05/0.3232, allocations: 1.812 kB / 477.9 MB, free: 3.938 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.3232, allocations: 0 / 477.9 MB, free: 3.938 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.84e-05/0.3233, allocations: 43.86 kB / 478 MB, free: 3.895 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001552/0.3235, allocations: 157.7 kB / 478.1 MB, free: 3.691 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.778e-05/0.3236, allocations: 58.59 kB / 478.2 MB, free: 3.625 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.165e-06/0.3236, allocations: 0 / 478.2 MB, free: 3.625 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.986e-05/0.3236, allocations: 64.33 kB / 478.3 MB, free: 3.547 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.082e-06/0.3236, allocations: 0 / 478.3 MB, free: 3.547 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0005255/0.3242, allocations: 312.5 kB / 478.6 MB, free: 3.211 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.976e-05/0.3242, allocations: 77.11 kB / 478.6 MB, free: 3.117 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001146/0.3244, allocations: 109 kB / 478.7 MB, free: 3.004 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.005e-05/0.3244, allocations: 25.7 kB / 478.8 MB, free: 2.973 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.473e-05/0.3245, allocations: 92.12 kB / 478.9 MB, free: 2.879 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.093e-05/0.3245, allocations: 7.844 kB / 478.9 MB, free: 2.871 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.681e-06/0.3245, allocations: 0 / 478.9 MB, free: 2.871 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.3247, allocations: 325.9 kB / 479.2 MB, free: 2.547 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.007e-05/0.3247, allocations: 39.91 kB / 479.2 MB, free: 2.508 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.985e-05/0.3248, allocations: 39.95 kB / 479.3 MB, free: 2.469 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.345e-05/0.3249, allocations: 69.67 kB / 479.3 MB, free: 2.395 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3249, allocations: 4.031 kB / 479.3 MB, free: 2.391 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.00024/0.3251, allocations: 187.2 kB / 479.5 MB, free: 2.195 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.271e-05/0.3252, allocations: 37.62 kB / 479.6 MB, free: 2.152 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.3252, allocations: 0 / 479.6 MB, free: 2.152 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.3252, allocations: 4 kB / 479.6 MB, free: 2.148 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.002e-06/0.3252, allocations: 0 / 479.6 MB, free: 2.148 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.3252, allocations: 0 / 479.6 MB, free: 2.148 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.96e-05/0.3252, allocations: 0 / 479.6 MB, free: 2.148 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.623e-05/0.3253, allocations: 8 kB / 479.6 MB, free: 2.141 MB / 346.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 (success1,success2,success3,success4) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001021/0.3254, allocations: 151.5 kB / 479.7 MB, free: 1.977 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.381e-05/0.3254, allocations: 8 kB / 479.7 MB, free: 1.969 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.61e-05/0.3254, allocations: 3.906 kB / 479.7 MB, free: 1.961 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.3254, allocations: 3.984 kB / 479.7 MB, free: 1.957 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.3254, allocations: 0 / 479.7 MB, free: 1.957 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.3255, allocations: 4 kB / 479.7 MB, free: 1.953 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000108/0.3256, allocations: 157.6 kB / 479.9 MB, free: 1.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3256, allocations: 3.984 kB / 479.9 MB, free: 1.746 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.32e-07/0.3256, allocations: 0 / 479.9 MB, free: 1.746 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.584e-06/0.3256, allocations: 4 kB / 479.9 MB, free: 1.742 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.3256, allocations: 256 / 479.9 MB, free: 1.742 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.3256, allocations: 8 kB / 479.9 MB, free: 1.734 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3256, allocations: 4 kB / 479.9 MB, free: 1.73 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002957/0.3259, allocations: 238.5 kB / 480.1 MB, free: 1.473 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.614e-05/0.326, allocations: 77.11 kB / 480.2 MB, free: 1.379 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.021e-05/0.326, allocations: 4 kB / 480.2 MB, free: 1.375 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.374e-05/0.326, allocations: 0 / 480.2 MB, free: 1.375 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.736e-05/0.326, allocations: 0 / 480.2 MB, free: 1.375 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.981e-05/0.3261, allocations: 15.98 kB / 480.2 MB, free: 1.359 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.149e-05/0.3261, allocations: 87.31 kB / 480.3 MB, free: 1.273 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3261, allocations: 0 / 480.3 MB, free: 1.273 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001895/0.3263, allocations: 8 kB / 480.3 MB, free: 1.266 MB / 346.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003033/0.3266, allocations: 146.3 kB / 480.5 MB, free: 1.133 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001738/0.3268, allocations: 131.3 kB / 480.6 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3268, allocations: 0 / 480.6 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.14e-05/0.3269, allocations: 99.38 kB / 480.7 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000139/0.327, allocations: 7.953 kB / 480.7 MB, free: 0.875 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002889/0.3273, allocations: 142.7 kB / 480.8 MB, free: 0.707 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002883/0.3276, allocations: 0.6809 MB / 481.5 MB, free: 0 / 346.7 MB Notification: Performance of simCode: alias equations: time 1.035e-05/0.3277, allocations: 0 / 481.5 MB, free: 0 / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.769e-05/0.3277, allocations: 7.562 kB / 481.5 MB, free: 15.99 MB / 362.7 MB Notification: Performance of SimCode: time 7.62e-07/0.3277, allocations: 4 kB / 481.5 MB, free: 15.99 MB / 362.7 MB Notification: Performance of Templates: time 0.002756/0.3305, allocations: 0.6112 MB / 482.1 MB, free: 15.39 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (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) 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","../files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches