Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001351/0.001351, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001429/0.001429, allocations: 213 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.505/1.505, allocations: 230.5 MB / 257.4 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002028/0.002028, allocations: 71.88 kB / 377.7 MB, free: 2.789 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2466/0.2487, allocations: 53.42 MB / 431.2 MB, free: 6.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004461/0.2531, allocations: 2.914 MB / 434.1 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001552/0.2547, allocations: 0.7751 MB / 434.9 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001692/0.2548, allocations: 11.94 kB / 434.9 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001768/0.255, allocations: 59.42 kB / 434.9 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001976/0.2552, allocations: 103 kB / 435 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004217/0.2556, allocations: 131.7 kB / 435.1 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004999/0.2561, allocations: 422.1 kB / 435.6 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002227/0.2564, allocations: 90.02 kB / 435.6 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002886/0.2566, allocations: 171.4 kB / 435.8 MB, free: 1.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002364/0.2569, allocations: 151.2 kB / 436 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.079e-05/0.257, allocations: 36 kB / 436 MB, free: 1.547 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.704e-05/0.2571, allocations: 40 kB / 436 MB, free: 1.508 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.065e-05/0.2571, allocations: 79.75 kB / 436.1 MB, free: 1.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001816/0.2573, allocations: 159.3 kB / 436.3 MB, free: 1.273 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000547/0.2579, allocations: 430.2 kB / 436.7 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2579, allocations: 7.938 kB / 436.7 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2579, allocations: 0 / 436.7 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.2579, allocations: 3.938 kB / 436.7 MB, free: 0.8398 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.001124/0.259, allocations: 0.5792 MB / 437.3 MB, free: 232 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.259, allocations: 15.98 kB / 437.3 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.266e-05/0.2591, allocations: 70.72 kB / 437.4 MB, free: 136 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002041/0.2593, allocations: 60.64 kB / 437.4 MB, free: 76 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005146/0.2599, allocations: 227.5 kB / 437.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001289/0.26, allocations: 132 kB / 437.8 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.048e-05/0.26, allocations: 36.31 kB / 437.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006263/0.2607, allocations: 386.1 kB / 438.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.2607, allocations: 0 / 438.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.119e-05/0.2607, allocations: 12 kB / 438.2 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.2607, allocations: 12 kB / 438.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004292/0.2612, allocations: 226.4 kB / 438.4 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001935/0.2631, allocations: 1.248 MB / 439.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003492/0.2634, allocations: 157.3 kB / 439.8 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001681/0.2636, allocations: 88.75 kB / 439.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.281e-05/0.2636, allocations: 4 kB / 439.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003556/0.264, allocations: 208.7 kB / 440.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.683e-06/0.264, allocations: 4 kB / 440.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001101/0.2651, allocations: 330.4 kB / 440.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.947e-05/0.2652, allocations: 106.8 kB / 440.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002993/0.2655, allocations: 277.7 kB / 440.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.076e-05/0.2655, allocations: 33.7 kB / 440.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001618/0.2657, allocations: 208.3 kB / 441.1 MB, free: 12.17 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.371e-05/0.2657, allocations: 67.44 kB / 441.1 MB, free: 12.1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.2658, allocations: 65.97 kB / 441.2 MB, free: 12.03 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.266, allocations: 338.8 kB / 441.5 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001696/0.2662, allocations: 80.56 kB / 441.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002839/0.2665, allocations: 224.9 kB / 441.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003806/0.2669, allocations: 239.5 kB / 442.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.2669, allocations: 0 / 442.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000696/0.2676, allocations: 348.3 kB / 442.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.656e-05/0.2676, allocations: 4 kB / 442.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.2676, allocations: 4 kB / 442.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002921/0.2679, allocations: 57.16 kB / 442.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002564/0.2681, allocations: 67.84 kB / 442.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001512/0.2697, allocations: 1.457 MB / 444 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002564/0.2699, allocations: 43.77 kB / 444 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.839e-05/0.2699, allocations: 15.98 kB / 444 MB, free: 8.961 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.0001691/0.2701, allocations: 153.7 kB / 444.2 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.466e-05/0.2702, allocations: 35.73 kB / 444.2 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.526e-05/0.2702, allocations: 34.27 kB / 444.3 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.2702, allocations: 4.094 kB / 444.3 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.2702, allocations: 4 kB / 444.3 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.2702, allocations: 0 / 444.3 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003309/0.2706, allocations: 284.6 kB / 444.6 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.562e-06/0.2706, allocations: 0 / 444.6 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001893/0.2708, allocations: 43.91 kB / 444.6 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00018/0.2709, allocations: 56.75 kB / 444.6 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.709e-05/0.2709, allocations: 4 kB / 444.7 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001259/0.2722, allocations: 1.311 MB / 446 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.2722, allocations: 0 / 446 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007351/0.2729, allocations: 352.2 kB / 446.3 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.867e-05/0.273, allocations: 47.75 kB / 446.4 MB, free: 6.465 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.9e-05/0.2731, allocations: 4 kB / 446.4 MB, free: 6.461 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001643/0.2732, allocations: 19.98 kB / 446.4 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.83e-05/0.2733, allocations: 31.88 kB / 446.4 MB, free: 6.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.504e-05/0.2734, allocations: 4 kB / 446.4 MB, free: 6.406 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001875/0.2735, allocations: 193.1 kB / 446.6 MB, free: 6.215 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2735, allocations: 64 / 446.6 MB, free: 6.215 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003836/0.2739, allocations: 95.84 kB / 446.7 MB, free: 6.121 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.001061/0.275, allocations: 0.8862 MB / 447.6 MB, free: 5.199 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006083/0.2756, allocations: 299.2 kB / 447.9 MB, free: 4.895 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.2756, allocations: 0 / 447.9 MB, free: 4.895 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000304/0.2759, allocations: 201.6 kB / 448.1 MB, free: 4.688 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002594/0.2762, allocations: 40.36 kB / 448.1 MB, free: 4.648 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00426/0.2804, allocations: 2.921 MB / 451 MB, free: 1.582 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001609/0.2806, allocations: 160.8 kB / 451.2 MB, free: 1.398 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001113/0.2807, allocations: 30.28 kB / 451.2 MB, free: 1.371 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001433/0.2808, allocations: 95.41 kB / 451.3 MB, free: 1.277 MB / 350.1 MB Notification: Performance of SimCode: time 8.12e-07/0.2808, allocations: 0 / 451.3 MB, free: 1.277 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04027/0.3211, allocations: 6.702 MB / 458 MB, free: 10.72 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/12.84, allocations: 0 / 458 MB, free: 10.72 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] Could not SIGINT process: 2105951. [Calling os._exit(0), Time elapsed: 67.70768011594191] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 12.961336242035031 12.989338927 12.726304143 Calling exit ...