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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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") [: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 trunk/package.mo): time 0.001134/0.001134, allocations: 201.3 kB / 8.544 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 225.5 MB / 234.4 MB, free: 3.445 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001005/0.001005, allocations: 92.61 kB / 286.3 MB, free: 5.25 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.556e-06/8.586e-06, allocations: 0 / 343.1 MB, free: 8.766 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1199, allocations: 51.48 MB / 394.6 MB, free: 5.234 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3485/0.4685, allocations: 74.94 MB / 469.5 MB, free: 15.86 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001731/0.4687, allocations: 59.11 kB / 469.6 MB, free: 15.84 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.001506/0.4702, allocations: 0.5104 MB / 470.1 MB, free: 15.57 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.917e-06/0.4702, allocations: 3.5 kB / 470.1 MB, free: 15.57 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.000228/0.4705, allocations: 356.1 kB / 470.5 MB, free: 15.18 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.4705, allocations: 8.031 kB / 470.5 MB, free: 15.17 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.824e-05/0.4706, allocations: 6.812 kB / 470.5 MB, free: 15.17 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001314/0.4707, allocations: 177.2 kB / 470.6 MB, free: 14.96 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.315e-05/0.4707, allocations: 0.5312 kB / 470.7 MB, free: 14.96 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.435e-05/0.4707, allocations: 4 kB / 470.7 MB, free: 14.96 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.554e-05/0.4708, allocations: 33.86 kB / 470.7 MB, free: 14.93 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001005/0.471, allocations: 71.02 kB / 470.8 MB, free: 14.87 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.627e-06/0.471, allocations: 0 / 470.8 MB, free: 14.87 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.261e-05/0.471, allocations: 3.422 kB / 470.8 MB, free: 14.87 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.471, allocations: 0 / 470.8 MB, free: 14.87 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001011/0.4711, allocations: 137.3 kB / 470.9 MB, free: 14.71 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.904e-05/0.4712, allocations: 60.38 kB / 471 MB, free: 14.65 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.962e-05/0.4712, allocations: 53.7 kB / 471 MB, free: 14.61 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.089e-06/0.4712, allocations: 0 / 471 MB, free: 14.61 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.533e-05/0.4713, allocations: 60.27 kB / 471.1 MB, free: 14.53 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 9.32e-07/0.4713, allocations: 0 / 471.1 MB, free: 14.53 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002123/0.4715, allocations: 109.2 kB / 471.2 MB, free: 14.44 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.972e-05/0.4715, allocations: 84.34 kB / 471.3 MB, free: 14.34 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.673e-05/0.4716, allocations: 99.8 kB / 471.4 MB, free: 14.24 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.07e-05/0.4716, allocations: 26.45 kB / 471.4 MB, free: 14.21 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.519e-05/0.4717, allocations: 88.17 kB / 471.5 MB, free: 14.12 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.256e-05/0.4717, allocations: 7.469 kB / 471.5 MB, free: 14.12 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.372e-06/0.4717, allocations: 0 / 471.5 MB, free: 14.12 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.225e-05/0.4718, allocations: 325.8 kB / 471.8 MB, free: 13.79 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.291e-05/0.4718, allocations: 40.33 kB / 471.8 MB, free: 13.77 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.807e-05/0.4718, allocations: 33.67 kB / 471.9 MB, free: 13.74 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.005e-05/0.4719, allocations: 37.28 kB / 471.9 MB, free: 13.71 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.4719, allocations: 3.188 kB / 471.9 MB, free: 13.71 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001306/0.472, allocations: 115.8 kB / 472 MB, free: 13.61 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.4721, allocations: 12.06 kB / 472 MB, free: 13.6 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.4721, allocations: 3.281 kB / 472 MB, free: 13.6 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.4721, allocations: 0 / 472 MB, free: 13.6 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.132e-06/0.4721, allocations: 0 / 472 MB, free: 13.6 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.4721, allocations: 3.906 kB / 472 MB, free: 13.6 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.77e-05/0.4721, allocations: 0 / 472 MB, free: 13.6 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.511e-05/0.4722, allocations: 8 kB / 472 MB, free: 13.59 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 7.57e-05/0.4722, allocations: 136.9 kB / 472.2 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.274e-05/0.4723, allocations: 3.906 kB / 472.2 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.676e-05/0.4723, allocations: 12 kB / 472.2 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.4723, allocations: 2.859 kB / 472.2 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.4723, allocations: 0 / 472.2 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.4723, allocations: 0 / 472.2 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.451e-05/0.4724, allocations: 142.4 kB / 472.3 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.4724, allocations: 0 / 472.3 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.4724, allocations: 3.938 kB / 472.3 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.293e-06/0.4724, allocations: 0 / 472.3 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.4724, allocations: 4 kB / 472.3 MB, free: 13.26 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.21e-07/0.4724, allocations: 0 / 472.3 MB, free: 13.26 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.4724, allocations: 3.906 kB / 472.3 MB, free: 13.26 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001533/0.4726, allocations: 147.9 kB / 472.5 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.915e-05/0.4726, allocations: 81.02 kB / 472.6 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.351e-05/0.4726, allocations: 7.328 kB / 472.6 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.407e-05/0.4727, allocations: 0 / 472.6 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.175e-05/0.4727, allocations: 0 / 472.6 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.798e-06/0.4727, allocations: 8 kB / 472.6 MB, free: 13.01 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.861e-05/0.4727, allocations: 90.84 kB / 472.7 MB, free: 12.93 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001972/0.4729, allocations: 12.03 kB / 472.7 MB, free: 12.92 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.0002504/0.4732, allocations: 127.5 kB / 472.8 MB, free: 12.8 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001127/0.4733, allocations: 90.81 kB / 472.9 MB, free: 12.72 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.4733, allocations: 0 / 472.9 MB, free: 12.72 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.922e-05/0.4734, allocations: 69.86 kB / 473 MB, free: 12.66 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001009/0.4735, allocations: 14.38 kB / 473 MB, free: 12.65 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001935/0.4737, allocations: 92.62 kB / 473.1 MB, free: 12.55 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001559/0.4738, allocations: 0.69 MB / 473.8 MB, free: 11.84 MB / 346.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4738, allocations: 0 / 473.8 MB, free: 11.84 MB / 346.7 MB Notification: Performance of Templates: time 0.002302/0.4762, allocations: 0.6066 MB / 474.4 MB, free: 11.47 MB / 346.7 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","../files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches