Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009947/0.0009947, allocations: 183.9 kB / 8.135 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.12/1.12, allocations: 221.4 MB / 229.9 MB, free: 3.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009327/0.0009329, allocations: 98.38 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09182/0.09278, allocations: 55.82 MB / 336.6 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1782/0.271, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07952/0.3505, allocations: 78.63 MB / 465.6 MB, free: 8.152 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002211/0.3508, allocations: 67.97 kB / 465.7 MB, free: 8.086 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.01532/0.3662, allocations: 5.827 MB / 471.5 MB, free: 2.223 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.3662, allocations: 8 kB / 471.5 MB, free: 2.215 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.801e-05/0.3663, allocations: 40.06 kB / 471.6 MB, free: 2.176 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002858/0.3666, allocations: 258.4 kB / 471.8 MB, free: 1.883 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.356e-05/0.3667, allocations: 68.06 kB / 471.9 MB, free: 1.805 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.121e-05/0.3667, allocations: 16 kB / 471.9 MB, free: 1.789 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003033/0.367, allocations: 165.3 kB / 472.1 MB, free: 1.625 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003901/0.3674, allocations: 249.6 kB / 472.3 MB, free: 1.367 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.3674, allocations: 0 / 472.3 MB, free: 1.367 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.85e-05/0.3675, allocations: 3.906 kB / 472.3 MB, free: 1.363 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.3675, allocations: 8 kB / 472.3 MB, free: 1.355 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001522/0.369, allocations: 1.072 MB / 473.4 MB, free: 216 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001631/0.3692, allocations: 93.73 kB / 473.5 MB, free: 116 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001107/0.3693, allocations: 70.72 kB / 473.6 MB, free: 44 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.973e-05/0.3693, allocations: 10.47 kB / 473.6 MB, free: 36 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001815/0.3695, allocations: 135.5 kB / 473.7 MB, free: 15.88 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.623e-06/0.3695, allocations: 0 / 473.7 MB, free: 15.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005285/0.3701, allocations: 203.7 kB / 473.9 MB, free: 15.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.004e-05/0.3701, allocations: 106.8 kB / 474 MB, free: 15.55 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001368/0.3703, allocations: 170.3 kB / 474.2 MB, free: 15.37 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/0.3703, allocations: 25.7 kB / 474.2 MB, free: 15.34 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.818e-05/0.3704, allocations: 171.9 kB / 474.4 MB, free: 15.17 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.773e-05/0.3704, allocations: 67.09 kB / 474.4 MB, free: 15.1 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.028e-05/0.3705, allocations: 0 / 474.4 MB, free: 15.1 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.3706, allocations: 330.7 kB / 474.7 MB, free: 14.77 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.912e-05/0.3707, allocations: 56.5 kB / 474.8 MB, free: 14.71 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001435/0.3708, allocations: 120.8 kB / 474.9 MB, free: 14.57 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001083/0.3709, allocations: 61.14 kB / 475 MB, free: 14.51 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.371, allocations: 0 / 475 MB, free: 14.51 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003551/0.3713, allocations: 229.6 kB / 475.2 MB, free: 14.28 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.3713, allocations: 8.031 kB / 475.2 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.3713, allocations: 0 / 475.2 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002438/0.3716, allocations: 61.91 kB / 475.3 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002026/0.3718, allocations: 55.92 kB / 475.3 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00101/0.3728, allocations: 1.249 MB / 476.6 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002207/0.3731, allocations: 35.77 kB / 476.6 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.892e-05/0.3731, allocations: 4 kB / 476.6 MB, free: 12.76 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: 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.0001354/0.3732, allocations: 123.9 kB / 476.7 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.705e-05/0.3733, allocations: 27.69 kB / 476.8 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.145e-05/0.3733, allocations: 17.75 kB / 476.8 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.3733, allocations: 5.031 kB / 476.8 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.3733, allocations: 0 / 476.8 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.3734, allocations: 3.984 kB / 476.8 MB, free: 12.58 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002564/0.3736, allocations: 273.9 kB / 477.1 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.093e-06/0.3736, allocations: 0 / 477.1 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001758/0.3738, allocations: 31.98 kB / 477.1 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002107/0.374, allocations: 53.62 kB / 477.1 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.804e-05/0.3741, allocations: 4 kB / 477.1 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009027/0.375, allocations: 1.251 MB / 478.4 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.375, allocations: 8.094 kB / 478.4 MB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005678/0.3756, allocations: 302.4 kB / 478.7 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008137/0.3764, allocations: 0.7459 MB / 479.4 MB, free: 9.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001666/0.3766, allocations: 108.8 kB / 479.6 MB, free: 9.605 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.226e-05/0.3766, allocations: 7.984 kB / 479.6 MB, free: 9.598 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001749/0.3768, allocations: 15.98 kB / 479.6 MB, free: 9.582 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.983e-05/0.3769, allocations: 19.94 kB / 479.6 MB, free: 9.562 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.658e-05/0.3769, allocations: 15.94 kB / 479.6 MB, free: 9.547 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.000118/0.377, allocations: 130.7 kB / 479.7 MB, free: 9.422 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009871/0.378, allocations: 75.84 kB / 479.8 MB, free: 9.348 MB / 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: 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.0001856/0.3782, allocations: 107.4 kB / 479.9 MB, free: 9.234 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005124/0.3787, allocations: 254.1 kB / 480.2 MB, free: 8.977 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.3788, allocations: 0 / 480.2 MB, free: 8.977 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002386/0.379, allocations: 181.9 kB / 480.3 MB, free: 8.789 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002175/0.3792, allocations: 27.92 kB / 480.4 MB, free: 8.762 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001255/0.3805, allocations: 487.3 kB / 480.8 MB, free: 8.262 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002954/0.3808, allocations: 0.7898 MB / 481.6 MB, free: 7.449 MB / 362.7 MB Notification: Performance of SimCode: time 2.9e-07/0.3808, allocations: 7.938 kB / 481.6 MB, free: 7.441 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat