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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 183.8 kB / 8.137 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.176/1.176, allocations: 221.4 MB / 229.9 MB, free: 3 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008754/0.0008753, allocations: 107.8 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.165e-06/8.215e-06, allocations: 0 / 336.5 MB, free: 9.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2257/0.2258, allocations: 50.39 MB / 386.9 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0817/0.3075, allocations: 74.15 MB / 461 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002001/0.3078, allocations: 59.97 kB / 461.1 MB, free: 12.61 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.001938/0.3097, allocations: 0.5217 MB / 461.6 MB, free: 12.1 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.3097, allocations: 0 / 461.6 MB, free: 12.1 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.000252/0.31, allocations: 352.9 kB / 462 MB, free: 11.71 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.31, allocations: 8.531 kB / 462 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.82e-05/0.3101, allocations: 7.906 kB / 462 MB, free: 11.69 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.3102, allocations: 164.1 kB / 462.1 MB, free: 11.49 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.087e-05/0.3102, allocations: 4 kB / 462.1 MB, free: 11.49 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.377e-05/0.3102, allocations: 0.75 kB / 462.1 MB, free: 11.49 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.589e-05/0.3103, allocations: 36.81 kB / 462.2 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001075/0.3105, allocations: 75.42 kB / 462.3 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.3105, allocations: 0 / 462.3 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.153e-05/0.3105, allocations: 0 / 462.3 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.706e-05/0.3106, allocations: 8.828 kB / 462.3 MB, free: 11.37 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001555/0.3107, allocations: 135 kB / 462.4 MB, free: 11.2 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.887e-05/0.3108, allocations: 59.36 kB / 462.5 MB, free: 11.13 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.898e-05/0.3109, allocations: 44.91 kB / 462.5 MB, free: 11.09 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.133e-06/0.3109, allocations: 0.5 kB / 462.5 MB, free: 11.09 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.599e-05/0.311, allocations: 68.17 kB / 462.6 MB, free: 11.01 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.192e-06/0.311, allocations: 0 / 462.6 MB, free: 11.01 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002274/0.3112, allocations: 105.6 kB / 462.7 MB, free: 10.9 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.159e-05/0.3112, allocations: 85.7 kB / 462.8 MB, free: 10.8 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.053e-05/0.3113, allocations: 106.7 kB / 462.9 MB, free: 10.69 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.954e-05/0.3113, allocations: 26.98 kB / 462.9 MB, free: 10.66 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.737e-05/0.3114, allocations: 84.14 kB / 463 MB, free: 10.57 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.325e-05/0.3114, allocations: 7.891 kB / 463 MB, free: 10.56 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.741e-06/0.3114, allocations: 0.75 kB / 463 MB, free: 10.56 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.3115, allocations: 327.6 kB / 463.3 MB, free: 10.23 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.786e-05/0.3116, allocations: 35.97 kB / 463.3 MB, free: 10.2 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.85e-05/0.3117, allocations: 36.02 kB / 463.4 MB, free: 10.16 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.389e-05/0.3117, allocations: 35.97 kB / 463.4 MB, free: 10.13 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.3117, allocations: 3.984 kB / 463.4 MB, free: 10.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001565/0.3119, allocations: 109.6 kB / 463.5 MB, free: 10.01 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/0.3119, allocations: 4 kB / 463.5 MB, free: 10.01 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.3119, allocations: 4 kB / 463.5 MB, free: 10 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.978e-06/0.3119, allocations: 3.938 kB / 463.5 MB, free: 10 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.11e-07/0.3119, allocations: 0 / 463.5 MB, free: 10 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.877e-06/0.3119, allocations: 0 / 463.5 MB, free: 10 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.047e-05/0.312, allocations: 3.906 kB / 463.5 MB, free: 9.996 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.629e-05/0.312, allocations: 12.69 kB / 463.5 MB, free: 9.984 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 () * 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 8.521e-05/0.3121, allocations: 138.7 kB / 463.7 MB, free: 9.836 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.41e-05/0.3121, allocations: 0 / 463.7 MB, free: 9.836 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.052e-05/0.3121, allocations: 11.91 kB / 463.7 MB, free: 9.82 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.3121, allocations: 3.938 kB / 463.7 MB, free: 9.816 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.3122, allocations: 3.469 kB / 463.7 MB, free: 9.816 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.3122, allocations: 0 / 463.7 MB, free: 9.816 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.712e-05/0.3123, allocations: 138.2 kB / 463.8 MB, free: 9.645 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3123, allocations: 0 / 463.8 MB, free: 9.645 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.3123, allocations: 0 / 463.8 MB, free: 9.645 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.3123, allocations: 4 kB / 463.8 MB, free: 9.641 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.62e-05/0.3123, allocations: 8 kB / 463.8 MB, free: 9.633 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.3123, allocations: 0.75 kB / 463.8 MB, free: 9.633 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.3123, allocations: 3.984 kB / 463.8 MB, free: 9.629 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001859/0.3125, allocations: 143.8 kB / 464 MB, free: 9.473 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.168e-05/0.3125, allocations: 85.05 kB / 464.1 MB, free: 9.371 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.626e-05/0.3126, allocations: 7.984 kB / 464.1 MB, free: 9.363 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.532e-05/0.3126, allocations: 32 / 464.1 MB, free: 9.363 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.371e-05/0.3126, allocations: 8 kB / 464.1 MB, free: 9.355 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.335e-05/0.3126, allocations: 8 kB / 464.1 MB, free: 9.348 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.993e-05/0.3127, allocations: 92.2 kB / 464.2 MB, free: 9.258 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001932/0.3129, allocations: 8 kB / 464.2 MB, free: 9.25 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) * 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.0002445/0.3131, allocations: 122.1 kB / 464.3 MB, free: 9.137 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000117/0.3133, allocations: 93.61 kB / 464.4 MB, free: 9.039 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3133, allocations: 0 / 464.4 MB, free: 9.039 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.805e-05/0.3133, allocations: 65.69 kB / 464.5 MB, free: 8.969 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.257e-05/0.3134, allocations: 7.906 kB / 464.5 MB, free: 8.961 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002006/0.3136, allocations: 95.77 kB / 464.6 MB, free: 8.844 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002201/0.3139, allocations: 0.6954 MB / 465.3 MB, free: 8.125 MB / 346.7 MB Notification: Performance of SimCode: time 3.51e-07/0.3139, allocations: 0 / 465.3 MB, free: 8.125 MB / 346.7 MB Notification: Performance of Templates: time 0.002356/0.3162, allocations: 0.6088 MB / 465.9 MB, free: 7.527 MB / 346.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