Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001244/0.001244, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001326/0.001326, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.401/1.401, allocations: 227.7 MB / 247.2 MB, free: 10.16 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002879/0.002879, allocations: 64.12 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2678/0.2707, allocations: 50.56 MB / 409.1 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004928/0.2756, allocations: 2.881 MB / 412 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00188/0.2776, allocations: 0.7556 MB / 412.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003651/0.278, allocations: 7.938 kB / 412.7 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000251/0.2783, allocations: 55.5 kB / 412.8 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002972/0.2786, allocations: 87.19 kB / 412.9 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004312/0.279, allocations: 103.8 kB / 413 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005109/0.2795, allocations: 366.4 kB / 413.3 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002489/0.2798, allocations: 131.2 kB / 413.5 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001688/0.28, allocations: 143.5 kB / 413.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002067/0.2802, allocations: 147.3 kB / 413.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.45e-05/0.2802, allocations: 32 kB / 413.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.612e-05/0.2803, allocations: 32 kB / 413.8 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.307e-05/0.2804, allocations: 67.75 kB / 413.9 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001727/0.2806, allocations: 167.2 kB / 414 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004618/0.2811, allocations: 365.5 kB / 414.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.2811, allocations: 0 / 414.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.2811, allocations: 0 / 414.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.258e-05/0.2811, allocations: 0 / 414.4 MB, free: 12.12 MB / 334.1 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.001128/0.2822, allocations: 0.6131 MB / 415 MB, free: 11.46 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.2823, allocations: 8.031 kB / 415 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.085e-05/0.2824, allocations: 66.72 kB / 415.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.904e-05/0.2824, allocations: 40.7 kB / 415.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000439/0.2829, allocations: 276.4 kB / 415.4 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.833e-05/0.283, allocations: 76.62 kB / 415.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.034e-05/0.283, allocations: 28.38 kB / 415.5 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000517/0.2836, allocations: 309.6 kB / 415.8 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.2836, allocations: 0 / 415.8 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.854e-05/0.2836, allocations: 8 kB / 415.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.2836, allocations: 8 kB / 415.8 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003489/0.284, allocations: 190.1 kB / 416 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001796/0.2858, allocations: 1.127 MB / 417.1 MB, free: 9.188 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003154/0.2861, allocations: 162.5 kB / 417.3 MB, free: 9.02 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001365/0.2863, allocations: 76.83 kB / 417.4 MB, free: 8.941 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.258e-05/0.2863, allocations: 4 kB / 417.4 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002756/0.2866, allocations: 155.2 kB / 417.5 MB, free: 8.766 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 5.541e-06/0.2866, allocations: 0 / 417.5 MB, free: 8.766 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001057/0.2877, allocations: 390.7 kB / 417.9 MB, free: 8.359 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.238e-05/0.2878, allocations: 110.8 kB / 418 MB, free: 8.227 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002365/0.288, allocations: 225 kB / 418.2 MB, free: 7.996 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.253e-05/0.2881, allocations: 33.7 kB / 418.3 MB, free: 7.957 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001368/0.2882, allocations: 184.4 kB / 418.4 MB, free: 7.773 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.287e-05/0.2883, allocations: 71.48 kB / 418.5 MB, free: 7.703 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.257e-05/0.2884, allocations: 57.66 kB / 418.6 MB, free: 7.641 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.2885, allocations: 334.8 kB / 418.9 MB, free: 7.305 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001281/0.2887, allocations: 67.97 kB / 419 MB, free: 7.238 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001877/0.2889, allocations: 157.3 kB / 419.1 MB, free: 7.051 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002775/0.2891, allocations: 184.2 kB / 419.3 MB, free: 6.848 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2892, allocations: 0 / 419.3 MB, free: 6.848 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004356/0.2896, allocations: 272.5 kB / 419.6 MB, free: 6.574 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.2896, allocations: 12.22 kB / 419.6 MB, free: 6.562 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.2896, allocations: 0 / 419.6 MB, free: 6.562 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002632/0.2899, allocations: 52.81 kB / 419.6 MB, free: 6.508 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002117/0.2901, allocations: 55.91 kB / 419.7 MB, free: 6.453 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001564/0.2917, allocations: 1.568 MB / 421.2 MB, free: 4.746 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002269/0.2919, allocations: 39.8 kB / 421.3 MB, free: 4.707 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.132e-05/0.292, allocations: 8 kB / 421.3 MB, free: 4.699 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001741/0.2921, allocations: 149.7 kB / 421.4 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.912e-05/0.2922, allocations: 23.86 kB / 421.5 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.477e-05/0.2923, allocations: 30.22 kB / 421.5 MB, free: 4.488 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.2923, allocations: 4 kB / 421.5 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.2923, allocations: 4 kB / 421.5 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.2923, allocations: 0 / 421.5 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003607/0.2927, allocations: 329.3 kB / 421.8 MB, free: 4.109 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.2927, allocations: 7.938 kB / 421.8 MB, free: 4.102 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001584/0.2928, allocations: 31.92 kB / 421.9 MB, free: 4.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000188/0.293, allocations: 52.81 kB / 421.9 MB, free: 4.016 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.763e-05/0.2931, allocations: 4 kB / 421.9 MB, free: 4.012 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001296/0.2944, allocations: 1.426 MB / 423.3 MB, free: 2.445 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2944, allocations: 0 / 423.3 MB, free: 2.445 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006551/0.295, allocations: 325.7 kB / 423.7 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00011/0.2952, allocations: 120.8 kB / 423.8 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.711e-05/0.2952, allocations: 11.98 kB / 423.8 MB, free: 1.957 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001657/0.2954, allocations: 11.98 kB / 423.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.244e-05/0.2955, allocations: 31.95 kB / 423.8 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/0.2955, allocations: 4 kB / 423.8 MB, free: 1.91 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001495/0.2956, allocations: 160.5 kB / 424 MB, free: 1.758 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2957, allocations: 4.062 kB / 424 MB, free: 1.754 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003538/0.296, allocations: 83.84 kB / 424.1 MB, free: 1.672 MB / 334.1 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001015/0.297, allocations: 0.8661 MB / 424.9 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005522/0.2976, allocations: 290.7 kB / 425.2 MB, free: 492 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.2976, allocations: 4 kB / 425.2 MB, free: 488 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000291/0.2979, allocations: 186.6 kB / 425.4 MB, free: 288 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002914/0.2982, allocations: 36.84 kB / 425.4 MB, free: 252 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003979/0.3022, allocations: 2.59 MB / 428 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004356/0.3027, allocations: 0.7597 MB / 428.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001154/0.3028, allocations: 30.22 kB / 428.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001313/0.3029, allocations: 83.41 kB / 428.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of SimCode: time 1.062e-06/0.303, allocations: 3.938 kB / 428.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03308/0.336, allocations: 5.647 MB / 434.6 MB, free: 7.145 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/11.92, allocations: 3.984 kB / 434.6 MB, free: 7.141 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00025 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1)