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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001235/0.001235, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001433/0.001433, allocations: 211.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.423/1.423, allocations: 230.6 MB / 258.3 MB, free: 8.047 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "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.002753/0.002753, allocations: 60.77 kB / 378.6 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2864/0.2892, allocations: 53.37 MB / 431.9 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004146/0.2933, allocations: 2.914 MB / 434.8 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00131/0.2946, allocations: 0.7712 MB / 435.6 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001313/0.2947, allocations: 7.938 kB / 435.6 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001672/0.2949, allocations: 55.5 kB / 435.7 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001706/0.2951, allocations: 87.19 kB / 435.8 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003296/0.2954, allocations: 111.8 kB / 435.9 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004123/0.2958, allocations: 370.4 kB / 436.2 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001979/0.296, allocations: 88.69 kB / 436.3 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001528/0.2962, allocations: 143.6 kB / 436.5 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002224/0.2964, allocations: 159.3 kB / 436.6 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.922e-05/0.2964, allocations: 32 kB / 436.6 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.998e-05/0.2965, allocations: 28 kB / 436.7 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.442e-05/0.2966, allocations: 71.75 kB / 436.7 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001532/0.2967, allocations: 159.3 kB / 436.9 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004075/0.2971, allocations: 366.2 kB / 437.3 MB, free: 1.527 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.2971, allocations: 3.984 kB / 437.3 MB, free: 1.523 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2971, allocations: 0 / 437.3 MB, free: 1.523 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.483e-06/0.2971, allocations: 0 / 437.3 MB, free: 1.523 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.000985/0.2981, allocations: 0.5378 MB / 437.8 MB, free: 0.957 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.2982, allocations: 8.031 kB / 437.8 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.544e-05/0.2982, allocations: 70.72 kB / 437.9 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.925e-05/0.2983, allocations: 36.7 kB / 437.9 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003564/0.2987, allocations: 206.7 kB / 438.1 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001091/0.2988, allocations: 128 kB / 438.2 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.113e-05/0.2988, allocations: 32.38 kB / 438.3 MB, free: 436 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004803/0.2993, allocations: 301.8 kB / 438.6 MB, free: 124 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.2993, allocations: 0 / 438.6 MB, free: 124 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.892e-05/0.2994, allocations: 12 kB / 438.6 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.2994, allocations: 8 kB / 438.6 MB, free: 104 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003576/0.2997, allocations: 190.5 kB / 438.8 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001626/0.3013, allocations: 1.085 MB / 439.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002918/0.3016, allocations: 142.6 kB / 440 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001327/0.3018, allocations: 76.77 kB / 440.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.405e-05/0.3018, allocations: 8 kB / 440.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002543/0.302, allocations: 149.8 kB / 440.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.262e-06/0.302, allocations: 0 / 440.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009968/0.303, allocations: 316.7 kB / 440.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.2e-05/0.3031, allocations: 110.8 kB / 440.6 MB, free: 13.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002375/0.3034, allocations: 224.9 kB / 440.9 MB, free: 13.67 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.808e-05/0.3034, allocations: 33.7 kB / 440.9 MB, free: 13.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001255/0.3035, allocations: 176.5 kB / 441.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.46e-05/0.3036, allocations: 75.42 kB / 441.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.858e-05/0.3037, allocations: 57.7 kB / 441.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.3038, allocations: 334.8 kB / 441.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001322/0.304, allocations: 67.97 kB / 441.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001867/0.3041, allocations: 145.5 kB / 441.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002834/0.3044, allocations: 192.1 kB / 441.9 MB, free: 12.53 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.3044, allocations: 0 / 441.9 MB, free: 12.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004623/0.3049, allocations: 280.4 kB / 442.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/0.3049, allocations: 8 kB / 442.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.3049, allocations: 0 / 442.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003054/0.3052, allocations: 61.02 kB / 442.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002314/0.3055, allocations: 55.91 kB / 442.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001454/0.3069, allocations: 1.468 MB / 443.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002125/0.3071, allocations: 35.86 kB / 443.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.037e-05/0.3071, allocations: 8 kB / 443.8 MB, free: 10.5 MB / 350.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.0001716/0.3073, allocations: 157.8 kB / 444 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.792e-05/0.3073, allocations: 23.86 kB / 444 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.022e-05/0.3074, allocations: 26.27 kB / 444 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.3074, allocations: 4 kB / 444 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-06/0.3074, allocations: 0 / 444 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.3074, allocations: 0 / 444 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003448/0.3078, allocations: 296.4 kB / 444.3 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.3078, allocations: 3.938 kB / 444.3 MB, free: 9.945 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001769/0.3079, allocations: 43.91 kB / 444.4 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001743/0.3081, allocations: 40.83 kB / 444.4 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.245e-05/0.3081, allocations: 11.98 kB / 444.4 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001234/0.3094, allocations: 1.327 MB / 445.7 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.3094, allocations: 0 / 445.7 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006301/0.31, allocations: 324.5 kB / 446.1 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001128/0.3101, allocations: 43.7 kB / 446.1 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.349e-05/0.3101, allocations: 7.938 kB / 446.1 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000168/0.3103, allocations: 20.05 kB / 446.1 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.892e-05/0.3104, allocations: 31.94 kB / 446.2 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.348e-05/0.3104, allocations: 4 kB / 446.2 MB, free: 7.965 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001489/0.3106, allocations: 164.5 kB / 446.3 MB, free: 7.809 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3106, allocations: 0 / 446.3 MB, free: 7.809 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003406/0.3109, allocations: 79.89 kB / 446.4 MB, free: 7.73 MB / 350.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.0009618/0.3119, allocations: 0.8699 MB / 447.3 MB, free: 6.832 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005384/0.3124, allocations: 274.4 kB / 447.5 MB, free: 6.551 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3124, allocations: 0 / 447.5 MB, free: 6.551 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002787/0.3127, allocations: 191.1 kB / 447.7 MB, free: 6.352 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000293/0.313, allocations: 47.02 kB / 447.8 MB, free: 6.309 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003569/0.3165, allocations: 2.595 MB / 450.4 MB, free: 3.586 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00036/0.3169, allocations: 0.7597 MB / 451.1 MB, free: 2.801 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.019e-05/0.317, allocations: 18.3 kB / 451.1 MB, free: 2.781 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001177/0.3171, allocations: 83.41 kB / 451.2 MB, free: 2.699 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.3171, allocations: 0 / 451.2 MB, free: 2.699 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03631/0.3534, allocations: 5.848 MB / 457.1 MB, free: 13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.74, allocations: 2.406 kB / 457.1 MB, free: 13 MB / 366.1 MB " [Timeout remaining time 648] (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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.246171995066106] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 11.842359323054552 11.863705164 11.562433618 Calling exit ...