Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.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.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1") [: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.001082/0.001082, allocations: 192.1 kB / 8.534 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 225.5 MB / 234.4 MB, free: 3.293 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008564/0.0008566, allocations: 95.11 kB / 286.3 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.702e-06/6.743e-06, allocations: 0 / 343.1 MB, free: 8.691 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1112, allocations: 51.49 MB / 394.6 MB, free: 5.16 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2959/0.4071, allocations: 77.67 MB / 472.3 MB, free: 13.84 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001907/0.4073, allocations: 64.7 kB / 472.3 MB, free: 13.82 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.007811/0.4152, allocations: 2.514 MB / 474.9 MB, free: 12.46 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.592e-05/0.4152, allocations: 8 kB / 474.9 MB, free: 12.45 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.000619/0.4158, allocations: 487.3 kB / 475.3 MB, free: 11.98 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.4159, allocations: 8.031 kB / 475.4 MB, free: 11.97 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001642/0.4161, allocations: 38.72 kB / 475.4 MB, free: 11.94 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002414/0.4163, allocations: 230.1 kB / 475.6 MB, free: 11.69 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.959e-05/0.4163, allocations: 7.984 kB / 475.6 MB, free: 11.68 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.206e-05/0.4164, allocations: 8 kB / 475.6 MB, free: 11.68 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002186/0.4166, allocations: 117.1 kB / 475.7 MB, free: 11.61 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002304/0.4168, allocations: 159.8 kB / 475.9 MB, free: 11.48 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.4169, allocations: 4 kB / 475.9 MB, free: 11.48 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.882e-05/0.4169, allocations: 0 / 475.9 MB, free: 11.48 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.494e-05/0.4169, allocations: 11.91 kB / 475.9 MB, free: 11.47 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000999/0.4179, allocations: 0.7459 MB / 476.7 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002493/0.4182, allocations: 137.7 kB / 476.8 MB, free: 10.71 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.064e-05/0.4183, allocations: 60.09 kB / 476.9 MB, free: 10.66 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.433e-05/0.4184, allocations: 4 kB / 476.9 MB, free: 10.66 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001602/0.4185, allocations: 125.3 kB / 477 MB, free: 10.55 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 2.755e-06/0.4185, allocations: 4 kB / 477 MB, free: 10.55 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004194/0.419, allocations: 159.8 kB / 477.1 MB, free: 10.43 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.558e-05/0.419, allocations: 84.48 kB / 477.2 MB, free: 10.33 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001691/0.4192, allocations: 162.8 kB / 477.4 MB, free: 10.2 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.678e-05/0.4192, allocations: 29.7 kB / 477.4 MB, free: 10.16 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.97e-05/0.4193, allocations: 121.4 kB / 477.5 MB, free: 10.05 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.723e-05/0.4194, allocations: 42 kB / 477.6 MB, free: 10.02 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.103e-05/0.4194, allocations: 0 / 477.6 MB, free: 10.02 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.38e-05/0.4195, allocations: 335.5 kB / 477.9 MB, free: 9.699 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.184e-05/0.4196, allocations: 53.39 kB / 478 MB, free: 9.668 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001115/0.4197, allocations: 102.7 kB / 478.1 MB, free: 9.57 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001218/0.4198, allocations: 75.31 kB / 478.1 MB, free: 9.527 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.4198, allocations: 3.938 kB / 478.1 MB, free: 9.523 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002865/0.4201, allocations: 199.8 kB / 478.3 MB, free: 9.375 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.4202, allocations: 8 kB / 478.3 MB, free: 9.367 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.4202, allocations: 0 / 478.3 MB, free: 9.367 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.366e-05/0.4202, allocations: 4 kB / 478.3 MB, free: 9.363 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002044/0.4204, allocations: 45.97 kB / 478.4 MB, free: 9.328 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.4204, allocations: 2.734 kB / 478.4 MB, free: 9.328 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001691/0.4206, allocations: 35.22 kB / 478.4 MB, free: 9.297 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.155e-05/0.4206, allocations: 12.23 kB / 478.4 MB, free: 9.289 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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 8.207e-05/0.4207, allocations: 112.4 kB / 478.5 MB, free: 9.176 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.653e-05/0.4208, allocations: 19.72 kB / 478.6 MB, free: 9.156 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003171/0.4211, allocations: 173.7 kB / 478.7 MB, free: 9.047 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.4211, allocations: 4 kB / 478.7 MB, free: 9.043 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.856e-06/0.4211, allocations: 5.297 kB / 478.7 MB, free: 9.039 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.4211, allocations: 0 / 478.7 MB, free: 9.039 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001941/0.4213, allocations: 244.2 kB / 479 MB, free: 8.824 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.4213, allocations: 0 / 479 MB, free: 8.824 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000123/0.4215, allocations: 23.45 kB / 479 MB, free: 8.805 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.4215, allocations: 4 kB / 479 MB, free: 8.801 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.511e-05/0.4215, allocations: 3.281 kB / 479 MB, free: 8.801 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.4215, allocations: 0 / 479 MB, free: 8.801 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.039e-06/0.4215, allocations: 1.438 kB / 479 MB, free: 8.801 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002374/0.4218, allocations: 203 kB / 479.2 MB, free: 8.625 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.916e-05/0.4218, allocations: 96.86 kB / 479.3 MB, free: 8.512 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.187e-05/0.4219, allocations: 3.906 kB / 479.3 MB, free: 8.508 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001577/0.422, allocations: 27.73 kB / 479.3 MB, free: 8.488 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.918e-05/0.4221, allocations: 14 kB / 479.3 MB, free: 8.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.558e-05/0.4221, allocations: 11.03 kB / 479.4 MB, free: 8.477 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.66e-05/0.4222, allocations: 125.9 kB / 479.5 MB, free: 8.375 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002548/0.4225, allocations: 35.34 kB / 479.5 MB, free: 8.344 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001545/0.4226, allocations: 104.2 kB / 479.6 MB, free: 8.234 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002339/0.4229, allocations: 155.1 kB / 479.8 MB, free: 8.125 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.4229, allocations: 3.938 kB / 479.8 MB, free: 8.121 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.938e-05/0.423, allocations: 69.31 kB / 479.8 MB, free: 8.078 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002821/0.4233, allocations: 29.19 kB / 479.9 MB, free: 8.062 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005235/0.4238, allocations: 253.5 kB / 480.1 MB, free: 7.844 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002144/0.424, allocations: 0.7611 MB / 480.9 MB, free: 7.086 MB / 346.7 MB Notification: Performance of SimCode: time 3.01e-07/0.424, allocations: 0 / 480.9 MB, free: 7.086 MB / 346.7 MB Notification: Performance of Templates: time 0.004763/0.4288, allocations: 2.045 MB / 482.9 MB, free: 5.555 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches