Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",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.001073/0.001073, allocations: 200.8 kB / 8.54 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.137/1.137, allocations: 225.5 MB / 234.4 MB, free: 14.97 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008758/0.0008758, allocations: 99.42 kB / 286.4 MB, free: 12.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08942/0.09032, allocations: 56.88 MB / 343.2 MB, free: 3.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1777/0.268, allocations: 51.45 MB / 394.7 MB, free: 33.16 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08033/0.3484, allocations: 80.39 MB / 475.1 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001743/0.3486, allocations: 71.97 kB / 475.2 MB, free: 0.5781 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.01851/0.3671, allocations: 6.68 MB / 481.8 MB, free: 9.844 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.3672, allocations: 12 kB / 481.9 MB, free: 9.832 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001805/0.3674, allocations: 55.52 kB / 481.9 MB, free: 9.777 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002956/0.3677, allocations: 271.4 kB / 482.2 MB, free: 9.469 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.491e-05/0.3678, allocations: 64.06 kB / 482.2 MB, free: 9.391 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.574e-05/0.3678, allocations: 20 kB / 482.3 MB, free: 9.371 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003359/0.3682, allocations: 181.3 kB / 482.4 MB, free: 9.195 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000405/0.3686, allocations: 281.5 kB / 482.7 MB, free: 8.902 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.3686, allocations: 0 / 482.7 MB, free: 8.902 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.674e-05/0.3686, allocations: 8.938 kB / 482.7 MB, free: 8.895 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.3686, allocations: 8 kB / 482.7 MB, free: 8.887 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001718/0.3704, allocations: 1.313 MB / 484 MB, free: 7.484 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001747/0.3706, allocations: 93.7 kB / 484.1 MB, free: 7.387 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001279/0.3707, allocations: 76.92 kB / 484.2 MB, free: 7.309 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.187e-05/0.3707, allocations: 7.938 kB / 484.2 MB, free: 7.301 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001878/0.3709, allocations: 135.4 kB / 484.3 MB, free: 7.141 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.263e-06/0.3709, allocations: 4 kB / 484.3 MB, free: 7.137 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.000556/0.3715, allocations: 214 kB / 484.6 MB, free: 6.926 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.953e-05/0.3716, allocations: 106.8 kB / 484.7 MB, free: 6.797 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001748/0.3717, allocations: 200 kB / 484.9 MB, free: 6.594 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.131e-05/0.3718, allocations: 25.7 kB / 484.9 MB, free: 6.562 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.081e-05/0.3719, allocations: 187.8 kB / 485.1 MB, free: 6.371 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.832e-05/0.3719, allocations: 63.09 kB / 485.1 MB, free: 6.309 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.193e-05/0.3719, allocations: 0 / 485.1 MB, free: 6.309 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.802e-05/0.372, allocations: 342.8 kB / 485.5 MB, free: 5.965 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001068/0.3722, allocations: 60.22 kB / 485.5 MB, free: 5.906 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001535/0.3723, allocations: 148.7 kB / 485.7 MB, free: 5.723 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000123/0.3724, allocations: 78.05 kB / 485.7 MB, free: 5.648 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3725, allocations: 0 / 485.7 MB, free: 5.648 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005632/0.373, allocations: 292.6 kB / 486 MB, free: 5.355 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.18e-05/0.373, allocations: 4 kB / 486 MB, free: 5.352 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/0.3731, allocations: 4.156 kB / 486 MB, free: 5.348 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002365/0.3733, allocations: 52.83 kB / 486.1 MB, free: 5.293 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002473/0.3736, allocations: 65.03 kB / 486.1 MB, free: 5.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009611/0.3745, allocations: 1.263 MB / 487.4 MB, free: 3.855 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002293/0.3748, allocations: 35.77 kB / 487.4 MB, free: 3.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.6e-05/0.3748, allocations: 11.98 kB / 487.5 MB, free: 3.809 MB / 362.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: 10 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,switch1.off,$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 (36): * Single equations (assignments): 35 * 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.000127/0.3749, allocations: 128.4 kB / 487.6 MB, free: 3.68 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.205e-05/0.375, allocations: 23.72 kB / 487.6 MB, free: 3.656 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.329e-05/0.375, allocations: 26.05 kB / 487.6 MB, free: 3.629 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.375, allocations: 4 kB / 487.6 MB, free: 3.625 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.532e-06/0.375, allocations: 0 / 487.6 MB, free: 3.625 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.3751, allocations: 0 / 487.6 MB, free: 3.625 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002488/0.3753, allocations: 289.9 kB / 487.9 MB, free: 3.305 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.3753, allocations: 0.9375 kB / 487.9 MB, free: 3.305 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002035/0.3755, allocations: 43.92 kB / 488 MB, free: 3.262 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001757/0.3757, allocations: 52.81 kB / 488 MB, free: 3.207 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.592e-05/0.3757, allocations: 0 / 488 MB, free: 3.207 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008281/0.3766, allocations: 1.26 MB / 489.3 MB, free: 1.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.3766, allocations: 4.031 kB / 489.3 MB, free: 1.836 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005522/0.3771, allocations: 316 kB / 489.6 MB, free: 1.508 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007792/0.3779, allocations: 0.7552 MB / 490.3 MB, free: 0.7305 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.887e-05/0.3781, allocations: 112.8 kB / 490.5 MB, free: 0.6016 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.033e-05/0.3781, allocations: 0 / 490.5 MB, free: 0.6016 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001897/0.3783, allocations: 25.08 kB / 490.5 MB, free: 0.5781 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.652e-05/0.3784, allocations: 19.97 kB / 490.5 MB, free: 0.5586 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.748e-05/0.3784, allocations: 7.984 kB / 490.5 MB, free: 0.5508 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001079/0.3785, allocations: 152.5 kB / 490.7 MB, free: 412 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.000887/0.3794, allocations: 87.67 kB / 490.7 MB, free: 324 kB / 362.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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001348/0.3795, allocations: 115.1 kB / 490.8 MB, free: 200 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004527/0.38, allocations: 266.6 kB / 491.1 MB, free: 15.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.38, allocations: 8 kB / 491.1 MB, free: 15.92 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002356/0.3803, allocations: 181.6 kB / 491.3 MB, free: 15.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001798/0.3804, allocations: 16.34 kB / 491.3 MB, free: 15.71 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001017/0.3815, allocations: 457.7 kB / 491.8 MB, free: 15.24 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003476/0.3818, allocations: 0.8058 MB / 492.6 MB, free: 14.41 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.3818, allocations: 0 / 492.6 MB, free: 14.41 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat