Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.001388/0.001388, 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.001812/0.001812, 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.406/1.406, allocations: 230.6 MB / 258.3 MB, free: 8.035 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.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",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.001941/0.001941, allocations: 68.73 kB / 378.6 MB, free: 3.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.2653, allocations: 53.36 MB / 431.9 MB, free: 7.051 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004517/0.2698, allocations: 3.196 MB / 435.1 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001532/0.2713, allocations: 0.8295 MB / 435.9 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001603/0.2715, allocations: 11.94 kB / 436 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001756/0.2717, allocations: 59.42 kB / 436 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001917/0.2719, allocations: 107 kB / 436.1 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004074/0.2723, allocations: 123.8 kB / 436.2 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004727/0.2727, allocations: 422.1 kB / 436.7 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000212/0.2729, allocations: 100.3 kB / 436.8 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002611/0.2732, allocations: 171.4 kB / 436.9 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000252/0.2735, allocations: 175.2 kB / 437.1 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.414e-05/0.2735, allocations: 36 kB / 437.1 MB, free: 1.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.332e-05/0.2736, allocations: 36 kB / 437.2 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.471e-05/0.2737, allocations: 79.73 kB / 437.2 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001906/0.2739, allocations: 191.1 kB / 437.4 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000506/0.2744, allocations: 434.1 kB / 437.8 MB, free: 1.094 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.2744, allocations: 0 / 437.8 MB, free: 1.094 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2744, allocations: 4 kB / 437.9 MB, free: 1.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.2744, allocations: 0 / 437.9 MB, free: 1.09 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.00107/0.2755, allocations: 0.5792 MB / 438.4 MB, free: 488 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.2755, allocations: 12.02 kB / 438.4 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.408e-05/0.2756, allocations: 70.73 kB / 438.5 MB, free: 396 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001984/0.2758, allocations: 56.64 kB / 438.6 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004229/0.2762, allocations: 227.5 kB / 438.8 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001456/0.2763, allocations: 132 kB / 438.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.86e-05/0.2764, allocations: 28.38 kB / 438.9 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005997/0.277, allocations: 342.6 kB / 439.3 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.277, allocations: 4 kB / 439.3 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.195e-05/0.2771, allocations: 16 kB / 439.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.2771, allocations: 8 kB / 439.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004406/0.2775, allocations: 218.5 kB / 439.5 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002052/0.2796, allocations: 1.314 MB / 440.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003714/0.2799, allocations: 172.8 kB / 441 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001721/0.2801, allocations: 80.83 kB / 441.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.183e-05/0.2801, allocations: 0 / 441.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003204/0.2804, allocations: 163.5 kB / 441.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.173e-06/0.2804, allocations: 0 / 441.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001101/0.2815, allocations: 337.3 kB / 441.6 MB, free: 13.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.879e-05/0.2816, allocations: 102.8 kB / 441.7 MB, free: 13.01 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000289/0.2819, allocations: 265.8 kB / 441.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.748e-05/0.282, allocations: 29.7 kB / 442 MB, free: 12.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001717/0.2821, allocations: 212.3 kB / 442.2 MB, free: 12.49 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.545e-05/0.2822, allocations: 83.23 kB / 442.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.904e-05/0.2823, allocations: 62.03 kB / 442.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.2825, allocations: 334.8 kB / 442.6 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001656/0.2826, allocations: 80.56 kB / 442.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002473/0.2829, allocations: 177.5 kB / 442.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003787/0.2833, allocations: 235.5 kB / 443.1 MB, free: 11.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.2833, allocations: 0 / 443.1 MB, free: 11.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000704/0.284, allocations: 348.5 kB / 443.5 MB, free: 11.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.284, allocations: 4 kB / 443.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.284, allocations: 4 kB / 443.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002812/0.2843, allocations: 60.97 kB / 443.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002543/0.2845, allocations: 59.91 kB / 443.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001498/0.286, allocations: 1.464 MB / 445.1 MB, free: 9.395 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002444/0.2863, allocations: 43.72 kB / 445.1 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.712e-05/0.2863, allocations: 20.08 kB / 445.1 MB, free: 9.332 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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.0001848/0.2865, allocations: 156.4 kB / 445.3 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.152e-05/0.2865, allocations: 31.8 kB / 445.3 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.489e-05/0.2866, allocations: 34.25 kB / 445.3 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.2866, allocations: 4 kB / 445.3 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.2866, allocations: 0 / 445.3 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.2866, allocations: 0 / 445.3 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004054/0.287, allocations: 312.4 kB / 445.6 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.287, allocations: 0 / 445.6 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001834/0.2872, allocations: 35.98 kB / 445.7 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001843/0.2874, allocations: 56.75 kB / 445.7 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.476e-05/0.2874, allocations: 0 / 445.7 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001301/0.2887, allocations: 1.322 MB / 447.1 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.2887, allocations: 4.156 kB / 447.1 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007348/0.2894, allocations: 349.5 kB / 447.4 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.014e-05/0.2895, allocations: 43.8 kB / 447.4 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.639e-05/0.2895, allocations: 4 kB / 447.4 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001662/0.2897, allocations: 20.05 kB / 447.5 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.248e-05/0.2898, allocations: 35.88 kB / 447.5 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.377e-05/0.2898, allocations: 8 kB / 447.5 MB, free: 6.746 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000195/0.29, allocations: 189.1 kB / 447.7 MB, free: 6.559 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.29, allocations: 0 / 447.7 MB, free: 6.559 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003758/0.2904, allocations: 91.84 kB / 447.8 MB, free: 6.469 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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.001046/0.2914, allocations: 0.8855 MB / 448.7 MB, free: 5.551 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006229/0.2921, allocations: 306.8 kB / 449 MB, free: 5.238 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2921, allocations: 0 / 449 MB, free: 5.238 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000309/0.2924, allocations: 194.6 kB / 449.2 MB, free: 5.035 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002603/0.2926, allocations: 44.41 kB / 449.2 MB, free: 4.992 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004386/0.297, allocations: 2.914 MB / 452.1 MB, free: 1.934 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004328/0.2975, allocations: 0.7714 MB / 452.9 MB, free: 1.133 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001056/0.2976, allocations: 26.28 kB / 452.9 MB, free: 1.105 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001465/0.2977, allocations: 99.41 kB / 453 MB, free: 1.008 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.2977, allocations: 4 kB / 453 MB, free: 1.004 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03738/0.3351, allocations: 6.272 MB / 459.3 MB, free: 10.88 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/11.94, allocations: 3.984 kB / 459.3 MB, free: 10.88 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.csv --start-time 0 --stop-time 6 --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_ControlledSwitchWithArc.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.410239346791059] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 12.037922197952867 12.053882021 11.77642337 Calling exit ...