Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_3.2.3_cpp_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 3.2.3+maint.om/package.mo): time 0.00233/0.00233, allocations: 178.7 kB / 8.151 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.786/1.786, allocations: 205.2 MB / 213.8 MB, free: 13.94 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001219/0.001219, allocations: 86.92 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.644e-06/7.725e-06, allocations: 0 / 314.3 MB, free: 9.066 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2402/0.2402, allocations: 47.56 MB / 361.8 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1116/0.3519, allocations: 73.25 MB / 435.1 MB, free: 12.82 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/0.3522, allocations: 64.45 kB / 435.1 MB, free: 12.76 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.002619/0.3548, allocations: 0.5135 MB / 435.7 MB, free: 12.26 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.138e-05/0.3549, allocations: 4 kB / 435.7 MB, free: 12.25 MB / 330.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.0003368/0.3552, allocations: 352.1 kB / 436 MB, free: 11.86 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.3553, allocations: 10.19 kB / 436 MB, free: 11.85 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.977e-05/0.3554, allocations: 9.312 kB / 436 MB, free: 11.84 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001868/0.3556, allocations: 175 kB / 436.2 MB, free: 11.63 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/0.3556, allocations: 0 / 436.2 MB, free: 11.63 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.011e-05/0.3556, allocations: 0 / 436.2 MB, free: 11.63 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001267/0.3558, allocations: 35.97 kB / 436.2 MB, free: 11.6 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000164/0.3559, allocations: 71.66 kB / 436.3 MB, free: 11.52 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.356, allocations: 0 / 436.3 MB, free: 11.52 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.819e-05/0.356, allocations: 5.125 kB / 436.3 MB, free: 11.52 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.356, allocations: 0 / 436.3 MB, free: 11.52 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001654/0.3562, allocations: 139.1 kB / 436.4 MB, free: 11.35 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001338/0.3563, allocations: 55.62 kB / 436.5 MB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001055/0.3564, allocations: 51.81 kB / 436.5 MB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.317e-05/0.3565, allocations: 4.844 kB / 436.5 MB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.743e-05/0.3565, allocations: 62.53 kB / 436.6 MB, free: 11.16 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.803e-06/0.3565, allocations: 0 / 436.6 MB, free: 11.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003556/0.3569, allocations: 113.6 kB / 436.7 MB, free: 11.04 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.795e-05/0.357, allocations: 81.11 kB / 436.8 MB, free: 10.95 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.3571, allocations: 105 kB / 436.9 MB, free: 10.84 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.17e-05/0.3571, allocations: 29.64 kB / 436.9 MB, free: 10.8 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.738e-05/0.3572, allocations: 155.6 kB / 437.1 MB, free: 10.65 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.752e-05/0.3572, allocations: 3.906 kB / 437.1 MB, free: 10.65 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.628e-06/0.3573, allocations: 0 / 437.1 MB, free: 10.65 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.3574, allocations: 318.8 kB / 437.4 MB, free: 10.33 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.179e-05/0.3575, allocations: 39.97 kB / 437.4 MB, free: 10.29 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.173e-05/0.3576, allocations: 31.97 kB / 437.5 MB, free: 10.26 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001062/0.3577, allocations: 40.97 kB / 437.5 MB, free: 10.22 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.3577, allocations: 0 / 437.5 MB, free: 10.22 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002691/0.358, allocations: 109.6 kB / 437.6 MB, free: 10.11 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.3581, allocations: 5.375 kB / 437.6 MB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.3581, allocations: 0 / 437.6 MB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.3581, allocations: 0 / 437.6 MB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.268e-06/0.3581, allocations: 4 kB / 437.6 MB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.438e-06/0.3581, allocations: 3.156 kB / 437.6 MB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.837e-05/0.3582, allocations: 0 / 437.6 MB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.52e-05/0.3582, allocations: 7.984 kB / 437.6 MB, free: 10.09 MB / 330.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 9.221e-05/0.3583, allocations: 59.31 kB / 437.7 MB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.405e-05/0.3583, allocations: 4 kB / 437.7 MB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.442e-05/0.3584, allocations: 8 kB / 437.7 MB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.3584, allocations: 0 / 437.7 MB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.3584, allocations: 10.7 kB / 437.7 MB, free: 10 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.3584, allocations: 3.906 kB / 437.7 MB, free: 9.996 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001213/0.3586, allocations: 134.2 kB / 437.9 MB, free: 9.828 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3586, allocations: 0 / 437.9 MB, free: 9.828 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.186e-06/0.3586, allocations: 4 kB / 437.9 MB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.3586, allocations: 4.969 kB / 437.9 MB, free: 9.82 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.711e-05/0.3586, allocations: 10.23 kB / 437.9 MB, free: 9.812 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.3586, allocations: 0.5 kB / 437.9 MB, free: 9.812 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3587, allocations: 1.891 kB / 437.9 MB, free: 9.812 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003125/0.359, allocations: 153 kB / 438 MB, free: 9.645 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.574e-05/0.359, allocations: 81.02 kB / 438.1 MB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.242e-05/0.3591, allocations: 0.75 kB / 438.1 MB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.522e-05/0.3591, allocations: 4 kB / 438.1 MB, free: 9.543 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.298e-05/0.3591, allocations: 0.5312 kB / 438.1 MB, free: 9.543 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.268e-05/0.3592, allocations: 12.12 kB / 438.1 MB, free: 9.531 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.29e-05/0.3592, allocations: 91.27 kB / 438.2 MB, free: 9.441 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002306/0.3595, allocations: 9.781 kB / 438.2 MB, free: 9.434 MB / 330.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.0003475/0.3598, allocations: 114.9 kB / 438.3 MB, free: 9.324 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001844/0.36, allocations: 93.61 kB / 438.4 MB, free: 9.227 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.3601, allocations: 4.062 kB / 438.4 MB, free: 9.223 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.278e-05/0.3602, allocations: 68.69 kB / 438.5 MB, free: 9.152 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001302/0.3603, allocations: 4 kB / 438.5 MB, free: 9.148 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002983/0.3606, allocations: 119.9 kB / 438.6 MB, free: 9.004 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003009/0.3609, allocations: 0.6954 MB / 439.3 MB, free: 8.285 MB / 330.7 MB Notification: Performance of SimCode: time 9.22e-07/0.3609, allocations: 0 / 439.3 MB, free: 8.285 MB / 330.7 MB Notification: Performance of Templates: time 0.002613/0.3636, allocations: 0.6585 MB / 440 MB, free: 7.637 MB / 330.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","../files/Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches