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.001291/0.001291, allocations: 118.6 kB / 18.5 MB, free: 4.602 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.001307/0.001307, allocations: 206.6 kB / 21.45 MB, free: 1.652 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.44/1.44, allocations: 230.5 MB / 254.8 MB, free: 15.12 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.001857/0.001857, allocations: 67.89 kB / 373.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1101, allocations: 53.33 MB / 427 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.005686/0.1158, allocations: 2.892 MB / 429.9 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00163/0.1174, allocations: 0.7712 MB / 430.7 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002488/0.1177, allocations: 7.938 kB / 430.7 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002334/0.1179, allocations: 55.5 kB / 430.8 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003238/0.1182, allocations: 87.17 kB / 430.8 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004578/0.1187, allocations: 99.77 kB / 430.9 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005254/0.1192, allocations: 378.4 kB / 431.3 MB, free: 496 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002352/0.1195, allocations: 83.28 kB / 431.4 MB, free: 404 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002384/0.1197, allocations: 143.5 kB / 431.5 MB, free: 260 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002609/0.12, allocations: 147.4 kB / 431.7 MB, free: 112 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.355e-05/0.12, allocations: 28 kB / 431.7 MB, free: 84 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.258e-05/0.1201, allocations: 35.94 kB / 431.7 MB, free: 48 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2171/0.3372, allocations: 69.73 kB / 431.8 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002745/0.3375, allocations: 163.6 kB / 432 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005451/0.338, allocations: 369 kB / 432.3 MB, free: 7.883 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.338, allocations: 0 / 432.3 MB, free: 7.883 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.338, allocations: 0.7188 kB / 432.3 MB, free: 7.883 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.807e-06/0.338, allocations: 0.9375 kB / 432.3 MB, free: 7.883 MB / 350.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.0009453/0.339, allocations: 0.6155 MB / 432.9 MB, free: 7.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.339, allocations: 9.625 kB / 432.9 MB, free: 7.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.873e-05/0.3391, allocations: 62.28 kB / 433 MB, free: 7.391 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.565e-05/0.3392, allocations: 40.3 kB / 433 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003435/0.3395, allocations: 273 kB / 433.3 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.262e-05/0.3396, allocations: 73.47 kB / 433.4 MB, free: 7.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.667e-05/0.3396, allocations: 28.03 kB / 433.4 MB, free: 7.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004429/0.3401, allocations: 301 kB / 433.7 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.3401, allocations: 3.5 kB / 433.7 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.677e-05/0.3401, allocations: 10.38 kB / 433.7 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.3401, allocations: 6.875 kB / 433.7 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003054/0.3404, allocations: 192.2 kB / 433.9 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001377/0.3418, allocations: 1.126 MB / 435 MB, free: 6.398 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000265/0.3421, allocations: 150 kB / 435.2 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001259/0.3422, allocations: 76.55 kB / 435.3 MB, free: 6.367 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.3422, allocations: 5.594 kB / 435.3 MB, free: 6.367 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002324/0.3424, allocations: 152.6 kB / 435.4 MB, free: 6.293 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.422e-06/0.3424, allocations: 0 / 435.4 MB, free: 6.293 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001013/0.3435, allocations: 394.2 kB / 435.8 MB, free: 6.141 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.553e-05/0.3435, allocations: 106 kB / 435.9 MB, free: 6.016 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002012/0.3437, allocations: 219.4 kB / 436.1 MB, free: 5.906 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.029e-05/0.3437, allocations: 30.8 kB / 436.2 MB, free: 5.875 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.998e-05/0.3438, allocations: 185.6 kB / 436.3 MB, free: 5.746 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.64e-05/0.3439, allocations: 71.64 kB / 436.4 MB, free: 5.703 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.918e-05/0.3439, allocations: 56.47 kB / 436.5 MB, free: 5.688 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.094e-05/0.344, allocations: 337.5 kB / 436.8 MB, free: 5.371 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001181/0.3441, allocations: 65.81 kB / 436.9 MB, free: 5.371 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000159/0.3443, allocations: 147.1 kB / 437 MB, free: 5.285 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002536/0.3445, allocations: 193.2 kB / 437.2 MB, free: 5.215 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.3445, allocations: 1.156 kB / 437.2 MB, free: 5.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004064/0.3449, allocations: 270.6 kB / 437.4 MB, free: 5.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.345, allocations: 5.906 kB / 437.5 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.345, allocations: 2.656 kB / 437.5 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002518/0.3452, allocations: 58.22 kB / 437.5 MB, free: 5.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002099/0.3454, allocations: 53.77 kB / 437.6 MB, free: 5.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001005/0.3464, allocations: 1.564 MB / 439.1 MB, free: 3.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002293/0.3467, allocations: 38.97 kB / 439.2 MB, free: 3.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.885e-05/0.3467, allocations: 16.19 kB / 439.2 MB, free: 3.641 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.0001112/0.3468, allocations: 148.8 kB / 439.3 MB, free: 3.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.541e-05/0.3468, allocations: 25.98 kB / 439.4 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.854e-05/0.3469, allocations: 30.31 kB / 439.4 MB, free: 3.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.3469, allocations: 2.5 kB / 439.4 MB, free: 3.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.3469, allocations: 0.8438 kB / 439.4 MB, free: 3.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.3469, allocations: 2.594 kB / 439.4 MB, free: 3.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000283/0.3472, allocations: 325 kB / 439.7 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.3472, allocations: 5.125 kB / 439.7 MB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001628/0.3473, allocations: 37.33 kB / 439.7 MB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001787/0.3475, allocations: 45.89 kB / 439.8 MB, free: 3.289 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.844e-05/0.3475, allocations: 9.781 kB / 439.8 MB, free: 3.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008458/0.3484, allocations: 1.425 MB / 441.2 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3484, allocations: 0 / 441.2 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005996/0.349, allocations: 324.8 kB / 441.5 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.99e-05/0.3491, allocations: 119.2 kB / 441.7 MB, free: 1.734 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.498e-05/0.3491, allocations: 6.062 kB / 441.7 MB, free: 1.734 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000167/0.3493, allocations: 21.83 kB / 441.7 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.399e-05/0.3493, allocations: 28.16 kB / 441.7 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.427e-05/0.3494, allocations: 5.547 kB / 441.7 MB, free: 1.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001287/0.3495, allocations: 164.4 kB / 441.9 MB, free: 1.656 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3495, allocations: 3.094 kB / 441.9 MB, free: 1.656 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003659/0.3499, allocations: 84.75 kB / 442 MB, free: 1.641 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.0007497/0.3506, allocations: 0.865 MB / 442.8 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004749/0.3511, allocations: 278 kB / 443.1 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.3511, allocations: 5.125 kB / 443.1 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002431/0.3513, allocations: 192.2 kB / 443.3 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002656/0.3516, allocations: 42 kB / 443.3 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003646/0.3552, allocations: 2.609 MB / 445.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004019/0.3556, allocations: 0.7617 MB / 446.7 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001076/0.3557, allocations: 23.28 kB / 446.7 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001294/0.3559, allocations: 86.47 kB / 446.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3559, allocations: 1.094 kB / 446.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04462/0.4005, allocations: 5.684 MB / 452.5 MB, free: 13.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.76, allocations: 9.016 kB / 452.5 MB, free: 13.43 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.223629412706941] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 11.856742755044252 11.871138053 11.530144228 Calling exit ...