Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [: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.001083/0.001083, allocations: 195.7 kB / 8.536 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.126/1.126, allocations: 225.5 MB / 234.4 MB, free: 3.316 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008309/0.0008309, allocations: 91.41 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08955/0.09041, allocations: 56.91 MB / 343.2 MB, free: 8.629 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08334/0.1738, allocations: 51.48 MB / 394.7 MB, free: 5.102 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2122/0.386, allocations: 79.44 MB / 474.1 MB, free: 12.49 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001585/0.3862, allocations: 76.22 kB / 474.2 MB, free: 12.46 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.01317/0.3994, allocations: 5.878 MB / 480.1 MB, free: 8.641 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.028e-05/0.3994, allocations: 8 kB / 480.1 MB, free: 8.633 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.242e-05/0.3995, allocations: 37.69 kB / 480.1 MB, free: 8.598 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002286/0.3998, allocations: 246.7 kB / 480.4 MB, free: 8.336 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.258e-05/0.3998, allocations: 64.06 kB / 480.4 MB, free: 8.262 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.642e-05/0.3999, allocations: 20 kB / 480.5 MB, free: 8.242 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002795/0.4001, allocations: 167.1 kB / 480.6 MB, free: 8.141 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003274/0.4005, allocations: 256.2 kB / 480.9 MB, free: 7.934 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.4005, allocations: 0 / 480.9 MB, free: 7.934 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.389e-05/0.4005, allocations: 0 / 480.9 MB, free: 7.934 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.4005, allocations: 8 kB / 480.9 MB, free: 7.926 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001248/0.4018, allocations: 1.063 MB / 482 MB, free: 6.945 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001424/0.4019, allocations: 98.67 kB / 482 MB, free: 6.871 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.958e-05/0.4021, allocations: 72.45 kB / 482.1 MB, free: 6.82 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.4021, allocations: 0 / 482.1 MB, free: 6.82 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001426/0.4022, allocations: 138.9 kB / 482.3 MB, free: 6.688 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 9.72e-07/0.4022, allocations: 0 / 482.3 MB, free: 6.688 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004749/0.4027, allocations: 207.2 kB / 482.5 MB, free: 6.512 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.823e-05/0.4028, allocations: 114.4 kB / 482.6 MB, free: 6.379 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001097/0.4029, allocations: 160.1 kB / 482.7 MB, free: 6.234 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.4029, allocations: 29.7 kB / 482.8 MB, free: 6.199 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.927e-05/0.403, allocations: 168.8 kB / 482.9 MB, free: 6.043 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.374e-05/0.403, allocations: 68.62 kB / 483 MB, free: 5.984 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.054e-05/0.403, allocations: 0 / 483 MB, free: 5.984 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.004e-05/0.4031, allocations: 333.2 kB / 483.3 MB, free: 5.66 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.003e-05/0.4032, allocations: 52.56 kB / 483.4 MB, free: 5.625 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001091/0.4033, allocations: 123.2 kB / 483.5 MB, free: 5.512 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.917e-05/0.4034, allocations: 65.34 kB / 483.5 MB, free: 5.473 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.4034, allocations: 0 / 483.5 MB, free: 5.473 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003155/0.4037, allocations: 227.3 kB / 483.8 MB, free: 5.289 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.688e-06/0.4037, allocations: 8.062 kB / 483.8 MB, free: 5.281 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.4037, allocations: 8 kB / 483.8 MB, free: 5.273 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002284/0.404, allocations: 54.62 kB / 483.8 MB, free: 5.227 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001943/0.4042, allocations: 51.3 kB / 483.9 MB, free: 5.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007309/0.4049, allocations: 1.253 MB / 485.1 MB, free: 3.863 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002065/0.4051, allocations: 31.77 kB / 485.2 MB, free: 3.832 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.008e-05/0.4052, allocations: 11.88 kB / 485.2 MB, free: 3.824 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch2.v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001043/0.4053, allocations: 120.9 kB / 485.3 MB, free: 3.699 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.89e-05/0.4053, allocations: 25.59 kB / 485.3 MB, free: 3.676 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.729e-05/0.4053, allocations: 19.5 kB / 485.3 MB, free: 3.668 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.4054, allocations: 0 / 485.3 MB, free: 3.668 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-06/0.4054, allocations: 4 kB / 485.4 MB, free: 3.664 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.4054, allocations: 3.984 kB / 485.4 MB, free: 3.66 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001946/0.4056, allocations: 264.5 kB / 485.6 MB, free: 3.406 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.4056, allocations: 0 / 485.6 MB, free: 3.406 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000168/0.4057, allocations: 27.98 kB / 485.6 MB, free: 3.379 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001704/0.4059, allocations: 62.75 kB / 485.7 MB, free: 3.324 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.649e-05/0.406, allocations: 0 / 485.7 MB, free: 3.324 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006538/0.4066, allocations: 1.252 MB / 487 MB, free: 2 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.4066, allocations: 0 / 487 MB, free: 2 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000497/0.4071, allocations: 307.1 kB / 487.3 MB, free: 1.75 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006212/0.4078, allocations: 0.7523 MB / 488 MB, free: 1.078 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.696e-05/0.4078, allocations: 111.3 kB / 488.1 MB, free: 0.957 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.636e-05/0.4079, allocations: 0 / 488.1 MB, free: 0.957 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001711/0.4081, allocations: 22.23 kB / 488.1 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.51e-05/0.4081, allocations: 19.06 kB / 488.2 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/0.4082, allocations: 8 kB / 488.2 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.537e-05/0.4082, allocations: 139.9 kB / 488.3 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008415/0.4091, allocations: 82.88 kB / 488.4 MB, free: 0.7188 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001118/0.4092, allocations: 103.2 kB / 488.5 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000364/0.4096, allocations: 250.1 kB / 488.7 MB, free: 412 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.4096, allocations: 1.688 kB / 488.7 MB, free: 412 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001964/0.4098, allocations: 179.9 kB / 488.9 MB, free: 248 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001924/0.41, allocations: 25.97 kB / 488.9 MB, free: 228 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001149/0.4111, allocations: 484.7 kB / 489.4 MB, free: 15.75 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000346/0.4115, allocations: 0.7928 MB / 490.2 MB, free: 14.94 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4115, allocations: 0 / 490.2 MB, free: 14.94 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat