Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008376/0.0008376, allocations: 88.05 kB / 20.67 MB, free: 3.871 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009472/0.0009472, allocations: 145.1 kB / 23.93 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9141/0.9141, allocations: 173.4 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.014e-05/2.171e-05, allocations: 6.219 kB / 318.4 MB, free: 6.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.002974/0.002995, allocations: 2.9 MB / 321.3 MB, free: 3.422 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00143/0.004426, allocations: 0.7243 MB / 322.1 MB, free: 2.691 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001966/0.004622, allocations: 4 kB / 322.1 MB, free: 2.688 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001631/0.004785, allocations: 71.3 kB / 322.1 MB, free: 2.617 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001825/0.004968, allocations: 106.9 kB / 322.2 MB, free: 2.512 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003626/0.005331, allocations: 107.7 kB / 322.4 MB, free: 2.406 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003647/0.005695, allocations: 433.9 kB / 322.8 MB, free: 1.98 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001749/0.00587, allocations: 92.38 kB / 322.9 MB, free: 1.887 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000246/0.006116, allocations: 247.5 kB / 323.1 MB, free: 1.645 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001528/0.006269, allocations: 119.7 kB / 323.2 MB, free: 1.527 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.797e-05/0.006317, allocations: 39.94 kB / 323.3 MB, free: 1.488 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.844e-05/0.006355, allocations: 36 kB / 323.3 MB, free: 1.453 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.162e-05/0.006407, allocations: 83.66 kB / 323.4 MB, free: 1.371 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.794e-05/0.006505, allocations: 127.7 kB / 323.5 MB, free: 1.246 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003294/0.006834, allocations: 438.6 kB / 323.9 MB, free: 0.8164 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.006838, allocations: 4 kB / 323.9 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.00684, allocations: 0 / 323.9 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.006847, allocations: 0 / 323.9 MB, free: 0.8125 MB / 282.7 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.0007778/0.007625, allocations: 0.5785 MB / 324.5 MB, free: 208 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.007665, allocations: 12.92 kB / 324.5 MB, free: 196 kB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.619e-05/0.007721, allocations: 70.72 kB / 324.6 MB, free: 116 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.179e-05/0.007783, allocations: 40.7 kB / 324.6 MB, free: 76 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003203/0.008103, allocations: 222.8 kB / 324.9 MB, free: 15.83 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.316e-05/0.008186, allocations: 128 kB / 325 MB, free: 15.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.642e-05/0.008232, allocations: 36.36 kB / 325 MB, free: 15.64 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004134/0.008646, allocations: 386.7 kB / 325.4 MB, free: 15.24 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.008655, allocations: 192 / 325.4 MB, free: 15.24 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.644e-05/0.008682, allocations: 19.94 kB / 325.4 MB, free: 15.22 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.655e-06/0.008689, allocations: 8 kB / 325.4 MB, free: 15.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000281/0.008971, allocations: 222.5 kB / 325.6 MB, free: 14.99 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001223/0.01019, allocations: 1.241 MB / 326.9 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002536/0.01045, allocations: 154.5 kB / 327 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/0.01056, allocations: 80.81 kB / 327.1 MB, free: 13.42 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.63e-05/0.01057, allocations: 4 kB / 327.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002251/0.0108, allocations: 216.2 kB / 327.3 MB, free: 13.17 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.443e-06/0.0108, allocations: 3.938 kB / 327.3 MB, free: 13.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006623/0.01146, allocations: 326.5 kB / 327.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.393e-05/0.01152, allocations: 106.8 kB / 327.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001947/0.01171, allocations: 269.7 kB / 328 MB, free: 12.44 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.01173, allocations: 25.7 kB / 328 MB, free: 12.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.01183, allocations: 216.3 kB / 328.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.649e-05/0.01188, allocations: 75.36 kB / 328.3 MB, free: 12.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.806e-05/0.01195, allocations: 65.97 kB / 328.4 MB, free: 12.04 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.204e-05/0.01204, allocations: 338.8 kB / 328.7 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/0.01215, allocations: 76.61 kB / 328.8 MB, free: 11.63 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004229/0.01257, allocations: 239.4 kB / 329 MB, free: 11.34 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002286/0.0128, allocations: 235.6 kB / 329.3 MB, free: 11.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.01281, allocations: 0 / 329.3 MB, free: 11.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004181/0.01322, allocations: 340.3 kB / 329.6 MB, free: 10.73 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.01324, allocations: 11.94 kB / 329.6 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.01325, allocations: 4 kB / 329.6 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001779/0.01343, allocations: 57.16 kB / 329.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001529/0.01358, allocations: 59.91 kB / 329.7 MB, free: 10.6 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009212/0.0145, allocations: 1.46 MB / 331.2 MB, free: 9.027 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001622/0.01466, allocations: 55.88 kB / 331.2 MB, free: 8.973 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.581e-05/0.01468, allocations: 12 kB / 331.2 MB, free: 8.961 MB / 298.7 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.0001215/0.0148, allocations: 148.6 kB / 331.4 MB, free: 8.809 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.36e-05/0.01482, allocations: 27.86 kB / 331.4 MB, free: 8.781 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.134e-05/0.01485, allocations: 30.27 kB / 331.4 MB, free: 8.754 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.01486, allocations: 7.938 kB / 331.5 MB, free: 8.746 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.01486, allocations: 3.938 kB / 331.5 MB, free: 8.742 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.01487, allocations: 7.984 kB / 331.5 MB, free: 8.734 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002382/0.0151, allocations: 284.5 kB / 331.7 MB, free: 8.414 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.01511, allocations: 0 / 331.7 MB, free: 8.414 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000107/0.01521, allocations: 35.98 kB / 331.8 MB, free: 8.379 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001226/0.01534, allocations: 48.81 kB / 331.8 MB, free: 8.328 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.01535, allocations: 8 kB / 331.8 MB, free: 8.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007702/0.01612, allocations: 1.311 MB / 333.1 MB, free: 6.895 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.01612, allocations: 3.984 kB / 333.2 MB, free: 6.891 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004388/0.01656, allocations: 356.8 kB / 333.5 MB, free: 6.523 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.595e-05/0.01663, allocations: 35.86 kB / 333.5 MB, free: 6.488 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.304e-05/0.01665, allocations: 8 kB / 333.5 MB, free: 6.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.816e-05/0.01673, allocations: 15.98 kB / 333.6 MB, free: 6.465 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.714e-05/0.0168, allocations: 31.94 kB / 333.6 MB, free: 6.434 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.113e-05/0.01681, allocations: 8 kB / 333.6 MB, free: 6.426 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001165/0.01692, allocations: 185.1 kB / 333.8 MB, free: 6.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01692, allocations: 0 / 333.8 MB, free: 6.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002804/0.0172, allocations: 95.78 kB / 333.9 MB, free: 6.156 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: 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.000658/0.01786, allocations: 0.8843 MB / 334.8 MB, free: 5.238 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004782/0.01834, allocations: 301.9 kB / 335.1 MB, free: 4.934 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.249e-06/0.01835, allocations: 8.125 kB / 335.1 MB, free: 4.926 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002013/0.01855, allocations: 198.6 kB / 335.3 MB, free: 4.719 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002363/0.01878, allocations: 36.47 kB / 335.3 MB, free: 4.684 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003252/0.02203, allocations: 2.848 MB / 338.1 MB, free: 1.668 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000141/0.02218, allocations: 164.8 kB / 338.3 MB, free: 1.484 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001121/0.02229, allocations: 30.27 kB / 338.3 MB, free: 1.457 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001267/0.02241, allocations: 100.5 kB / 338.4 MB, free: 1.359 MB / 298.7 MB Notification: Performance of SimCode: time 1.713e-06/0.02242, allocations: 0 / 338.4 MB, free: 1.359 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02468/0.0471, allocations: 6.807 MB / 345.2 MB, free: 10.72 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.817/7.864, allocations: 0 / 345.2 MB, free: 10.72 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.723808675073087] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 7.957371482625604 7.96970478 7.959921548 Calling exit ...