Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.0008489/0.0008489, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.000846/0.000846, allocations: 156.9 kB / 23.94 MB, free: 0.6172 MB / 18.57 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 0.8855/0.8855, allocations: 177 MB / 204.1 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.854e-06/1.854e-06, allocations: 0 / 324.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.332e-05/2.518e-05, allocations: 6.984 kB / 324.5 MB, free: 15.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004211/0.004237, allocations: 2.7 MB / 327.2 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001562/0.005798, allocations: 0.7399 MB / 328 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001868/0.005985, allocations: 8 kB / 328 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001794/0.006164, allocations: 51.48 kB / 328 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002082/0.006372, allocations: 103 kB / 328.1 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004218/0.006794, allocations: 103.7 kB / 328.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005698/0.007364, allocations: 386.2 kB / 328.6 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002243/0.007588, allocations: 79.67 kB / 328.7 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002428/0.007831, allocations: 215.5 kB / 328.9 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001854/0.008016, allocations: 111.7 kB / 329 MB, free: 11.34 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.728e-05/0.008074, allocations: 32 kB / 329 MB, free: 11.31 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.284e-05/0.008117, allocations: 28 kB / 329.1 MB, free: 11.29 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.356e-05/0.00818, allocations: 75.73 kB / 329.1 MB, free: 11.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000124/0.008304, allocations: 111.8 kB / 329.2 MB, free: 11.1 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004357/0.00874, allocations: 378.8 kB / 329.6 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.008745, allocations: 4 kB / 329.6 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.008747, allocations: 0 / 329.6 MB, free: 10.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.181e-06/0.008753, allocations: 0 / 329.6 MB, free: 10.73 MB / 298.7 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.001583/0.01034, allocations: 0.5262 MB / 330.1 MB, free: 10.17 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.01039, allocations: 11.98 kB / 330.2 MB, free: 10.16 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.93e-05/0.01046, allocations: 70.72 kB / 330.2 MB, free: 10.08 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.91e-05/0.01053, allocations: 40.7 kB / 330.3 MB, free: 10.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003599/0.01089, allocations: 205.9 kB / 330.5 MB, free: 9.809 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.644e-05/0.01098, allocations: 136 kB / 330.6 MB, free: 9.652 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.648e-05/0.01102, allocations: 28.38 kB / 330.6 MB, free: 9.625 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003662/0.01138, allocations: 345.9 kB / 331 MB, free: 9.262 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.01139, allocations: 192 / 331 MB, free: 9.262 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.398e-05/0.01142, allocations: 19.92 kB / 331 MB, free: 9.242 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.01142, allocations: 8 kB / 331 MB, free: 9.234 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002275/0.01165, allocations: 186.5 kB / 331.2 MB, free: 9.051 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001194/0.01285, allocations: 1.031 MB / 332.2 MB, free: 7.945 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002323/0.01308, allocations: 150.6 kB / 332.4 MB, free: 7.789 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.361e-05/0.01316, allocations: 72.81 kB / 332.4 MB, free: 7.715 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.603e-05/0.01318, allocations: 7.938 kB / 332.4 MB, free: 7.707 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000269/0.01345, allocations: 209.2 kB / 332.6 MB, free: 7.469 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.322e-06/0.01345, allocations: 0 / 332.6 MB, free: 7.469 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006131/0.01406, allocations: 309.5 kB / 332.9 MB, free: 7.16 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.666e-05/0.01411, allocations: 110.8 kB / 333 MB, free: 7.027 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001503/0.01426, allocations: 225.7 kB / 333.3 MB, free: 6.797 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.789e-05/0.01428, allocations: 33.7 kB / 333.3 MB, free: 6.758 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.953e-05/0.01437, allocations: 176.5 kB / 333.5 MB, free: 6.578 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.126e-05/0.01441, allocations: 79.41 kB / 333.6 MB, free: 6.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.376e-05/0.01447, allocations: 57.66 kB / 333.6 MB, free: 6.438 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.62e-05/0.01455, allocations: 334.8 kB / 333.9 MB, free: 6.102 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.346e-05/0.01463, allocations: 67.97 kB / 334 MB, free: 6.035 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001323/0.01476, allocations: 193.6 kB / 334.2 MB, free: 5.801 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003129/0.01508, allocations: 200.1 kB / 334.4 MB, free: 5.582 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.01508, allocations: 0 / 334.4 MB, free: 5.582 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002857/0.01536, allocations: 276.5 kB / 334.7 MB, free: 5.305 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.01538, allocations: 8 kB / 334.7 MB, free: 5.297 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.01538, allocations: 0 / 334.7 MB, free: 5.297 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001996/0.01558, allocations: 57.03 kB / 334.7 MB, free: 5.238 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.01572, allocations: 55.91 kB / 334.8 MB, free: 5.184 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000906/0.01662, allocations: 1.457 MB / 336.2 MB, free: 3.617 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001229/0.01674, allocations: 39.92 kB / 336.3 MB, free: 3.578 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.331e-05/0.01676, allocations: 12 kB / 336.3 MB, free: 3.566 MB / 298.7 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.0001051/0.01686, allocations: 145.8 kB / 336.4 MB, free: 3.41 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.092e-05/0.01688, allocations: 23.8 kB / 336.4 MB, free: 3.387 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.762e-05/0.01691, allocations: 30.27 kB / 336.5 MB, free: 3.359 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-06/0.01691, allocations: 0 / 336.5 MB, free: 3.359 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-06/0.01691, allocations: 0 / 336.5 MB, free: 3.359 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.01692, allocations: 11.92 kB / 336.5 MB, free: 3.348 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001884/0.01711, allocations: 264.5 kB / 336.7 MB, free: 3.047 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.01711, allocations: 3.938 kB / 336.8 MB, free: 3.043 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.635e-05/0.01721, allocations: 35.92 kB / 336.8 MB, free: 3.008 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001205/0.01733, allocations: 56.8 kB / 336.8 MB, free: 2.949 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.283e-05/0.01734, allocations: 4 kB / 336.8 MB, free: 2.945 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009533/0.01829, allocations: 1.315 MB / 338.2 MB, free: 1.52 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.01829, allocations: 0 / 338.2 MB, free: 1.52 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003788/0.01867, allocations: 326.3 kB / 338.5 MB, free: 1.18 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.5e-05/0.01873, allocations: 35.86 kB / 338.5 MB, free: 1.145 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.738e-05/0.01875, allocations: 4 kB / 338.5 MB, free: 1.141 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.75e-05/0.01882, allocations: 24.08 kB / 338.5 MB, free: 1.117 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.51e-05/0.01889, allocations: 35.88 kB / 338.6 MB, free: 1.082 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.786e-06/0.0189, allocations: 8 kB / 338.6 MB, free: 1.074 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.187e-05/0.01899, allocations: 165.2 kB / 338.7 MB, free: 0.9141 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01899, allocations: 0 / 338.7 MB, free: 0.9141 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002242/0.01921, allocations: 87.78 kB / 338.8 MB, free: 0.8281 MB / 298.7 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.0007342/0.01995, allocations: 0.8602 MB / 339.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000383/0.02033, allocations: 273.7 kB / 340 MB, free: 15.66 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.02033, allocations: 0 / 340 MB, free: 15.66 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000158/0.02049, allocations: 190.6 kB / 340.1 MB, free: 15.46 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002161/0.02071, allocations: 40.36 kB / 340.2 MB, free: 15.42 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002276/0.02298, allocations: 2.544 MB / 342.7 MB, free: 12.73 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.504e-05/0.02308, allocations: 150.8 kB / 342.9 MB, free: 12.57 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.512e-05/0.02314, allocations: 30.27 kB / 342.9 MB, free: 12.54 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.457e-05/0.02324, allocations: 80.47 kB / 343 MB, free: 12.46 MB / 314.7 MB Notification: Performance of SimCode: time 4.81e-07/0.02324, allocations: 0 / 343 MB, free: 12.46 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01998/0.04321, allocations: 6.45 MB / 349.4 MB, free: 6.152 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.629/7.673, allocations: 3.375 kB / 349.4 MB, free: 6.152 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.411207208409905] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 7.76359423995018 7.772054573 7.761072597 Calling exit ...