Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.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.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel") translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel") [: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.001091/0.001092, allocations: 208.6 kB / 8.541 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 225.5 MB / 234.4 MB, free: 3.355 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001063/0.001063, allocations: 99.41 kB / 286.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.303e-05/1.336e-05, allocations: 4 kB / 343.1 MB, free: 8.738 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1211, allocations: 51.48 MB / 394.6 MB, free: 5.215 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3514/0.4726, allocations: 79.17 MB / 473.8 MB, free: 12.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001836/0.4728, allocations: 69.33 kB / 473.8 MB, free: 12.96 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.021/0.4938, allocations: 7.847 MB / 481.7 MB, free: 8.02 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.305e-06/0.4939, allocations: 0 / 481.7 MB, free: 8.02 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0006265/0.4945, allocations: 467.7 kB / 482.1 MB, free: 7.527 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.4946, allocations: 8.031 kB / 482.2 MB, free: 7.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.656e-05/0.4947, allocations: 83.27 kB / 482.2 MB, free: 7.438 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001403/0.4948, allocations: 241.2 kB / 482.5 MB, free: 7.164 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.143e-05/0.4948, allocations: 154.6 kB / 482.6 MB, free: 7.012 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.794e-05/0.4949, allocations: 155.3 kB / 482.8 MB, free: 6.863 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.137e-05/0.4949, allocations: 157 kB / 482.9 MB, free: 6.711 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.421e-05/0.495, allocations: 101 kB / 483 MB, free: 6.605 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.702e-05/0.495, allocations: 75.28 kB / 483.1 MB, free: 6.531 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.944e-05/0.495, allocations: 154.6 kB / 483.2 MB, free: 6.379 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.025e-05/0.4951, allocations: 154.5 kB / 483.4 MB, free: 6.227 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001929/0.4953, allocations: 433.9 kB / 483.8 MB, free: 5.77 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.54e-05/0.4953, allocations: 169.1 kB / 484 MB, free: 5.594 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.364e-05/0.4954, allocations: 84.14 kB / 484.1 MB, free: 5.508 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.954e-05/0.4954, allocations: 75.28 kB / 484.1 MB, free: 5.434 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001044/0.4955, allocations: 55.02 kB / 484.2 MB, free: 5.371 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 2.104e-06/0.4955, allocations: 0 / 484.2 MB, free: 5.371 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001226/0.4956, allocations: 29.61 kB / 484.2 MB, free: 5.336 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.866e-05/0.4957, allocations: 59.44 kB / 484.3 MB, free: 5.266 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.518e-05/0.4958, allocations: 104.8 kB / 484.4 MB, free: 5.16 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.206e-06/0.4958, allocations: 25.7 kB / 484.4 MB, free: 5.129 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.008e-05/0.4958, allocations: 80.14 kB / 484.5 MB, free: 5.047 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.421e-05/0.4958, allocations: 0 / 484.5 MB, free: 5.047 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.894e-06/0.4959, allocations: 0 / 484.5 MB, free: 5.047 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.088e-05/0.4959, allocations: 314.8 kB / 484.8 MB, free: 4.73 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.891e-06/0.4959, allocations: 0 / 484.8 MB, free: 4.73 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.458e-06/0.4959, allocations: 0 / 484.8 MB, free: 4.73 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.109e-05/0.4959, allocations: 4.062 kB / 484.8 MB, free: 4.727 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.496, allocations: 0 / 484.8 MB, free: 4.727 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.428e-05/0.496, allocations: 45.53 kB / 484.8 MB, free: 4.68 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.115e-05/0.496, allocations: 6.031 kB / 484.9 MB, free: 4.676 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.496, allocations: 0 / 484.9 MB, free: 4.676 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.4961, allocations: 0 / 484.9 MB, free: 4.676 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.766e-05/0.4961, allocations: 3.469 kB / 484.9 MB, free: 4.676 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.787e-06/0.4961, allocations: 0 / 484.9 MB, free: 4.676 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.834e-05/0.4961, allocations: 4 kB / 484.9 MB, free: 4.672 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.171e-06/0.4961, allocations: 4.031 kB / 484.9 MB, free: 4.668 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: 1 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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 5.053e-05/0.4962, allocations: 101 kB / 485 MB, free: 4.562 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.338e-06/0.4962, allocations: 3.906 kB / 485 MB, free: 4.559 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.39e-05/0.4962, allocations: 15.08 kB / 485 MB, free: 4.543 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.4962, allocations: 0 / 485 MB, free: 4.543 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.4962, allocations: 0 / 485 MB, free: 4.543 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.4963, allocations: 0 / 485 MB, free: 4.543 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.461e-05/0.4963, allocations: 127.8 kB / 485.1 MB, free: 4.383 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.4964, allocations: 3.984 kB / 485.1 MB, free: 4.379 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.866e-06/0.4964, allocations: 0 / 485.1 MB, free: 4.379 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.4964, allocations: 4 kB / 485.1 MB, free: 4.375 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.4964, allocations: 3.938 kB / 485.1 MB, free: 4.371 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.664e-06/0.4964, allocations: 3.906 kB / 485.1 MB, free: 4.367 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.4964, allocations: 0 / 485.1 MB, free: 4.367 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 4.887e-05/0.4964, allocations: 56.95 kB / 485.2 MB, free: 4.297 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.076e-05/0.4965, allocations: 85 kB / 485.3 MB, free: 4.195 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.387e-05/0.4965, allocations: 0 / 485.3 MB, free: 4.195 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.334e-05/0.4965, allocations: 4.906 kB / 485.3 MB, free: 4.191 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.307e-05/0.4965, allocations: 4 kB / 485.3 MB, free: 4.188 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.523e-06/0.4965, allocations: 0 / 485.3 MB, free: 4.188 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.413e-05/0.4966, allocations: 83.09 kB / 485.3 MB, free: 4.109 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005509/0.4971, allocations: 190.9 kB / 485.5 MB, free: 3.941 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: 1 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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.001037/0.4982, allocations: 0.5371 MB / 486.1 MB, free: 3.484 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.614e-05/0.4983, allocations: 3.938 kB / 486.1 MB, free: 3.48 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.4983, allocations: 8.062 kB / 486.1 MB, free: 3.473 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.108e-06/0.4983, allocations: 3.75 kB / 486.1 MB, free: 3.473 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001189/0.4984, allocations: 0 / 486.1 MB, free: 3.473 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002022/0.4986, allocations: 46.92 kB / 486.1 MB, free: 3.406 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001825/0.4988, allocations: 0.6918 MB / 486.8 MB, free: 2.688 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4988, allocations: 0 / 486.8 MB, free: 2.688 MB / 346.7 MB Notification: Performance of Templates: time 0.005876/0.5047, allocations: 3.068 MB / 489.9 MB, free: 15.64 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.makefile (rm -f Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","../files/Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches