Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008337/0.0008337, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008413/0.0008413, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9425/0.9425, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.293e-06/1.293e-06, allocations: 0 / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.205e-05/1.335e-05, allocations: 6.219 kB / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003003/0.003016, allocations: 2.934 MB / 327.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001018/0.004034, allocations: 0.7827 MB / 328.3 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000138/0.004172, allocations: 4 kB / 328.3 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000165/0.004337, allocations: 63.36 kB / 328.4 MB, free: 12.1 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001396/0.004477, allocations: 114.9 kB / 328.5 MB, free: 11.99 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003688/0.004846, allocations: 115.7 kB / 328.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003213/0.005167, allocations: 441.9 kB / 329 MB, free: 11.44 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001891/0.005356, allocations: 100.3 kB / 329.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002453/0.005601, allocations: 243.5 kB / 329.4 MB, free: 11.11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001437/0.005745, allocations: 123.6 kB / 329.5 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.443e-05/0.00579, allocations: 36 kB / 329.5 MB, free: 10.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.288e-05/0.005853, allocations: 40 kB / 329.6 MB, free: 10.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.931e-05/0.005902, allocations: 83.67 kB / 329.6 MB, free: 10.83 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.658e-05/0.005988, allocations: 131.7 kB / 329.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003228/0.006311, allocations: 438.6 kB / 330.2 MB, free: 10.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.006314, allocations: 0 / 330.2 MB, free: 10.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.006315, allocations: 4 kB / 330.2 MB, free: 10.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.00632, allocations: 0 / 330.2 MB, free: 10.27 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0007166/0.007037, allocations: 0.5934 MB / 330.8 MB, free: 9.641 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.007075, allocations: 12.03 kB / 330.8 MB, free: 9.629 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.66e-05/0.007132, allocations: 70.72 kB / 330.9 MB, free: 9.551 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001296/0.007261, allocations: 52.66 kB / 330.9 MB, free: 9.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002584/0.00752, allocations: 230.8 kB / 331.2 MB, free: 9.246 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.126e-05/0.007601, allocations: 132 kB / 331.3 MB, free: 9.094 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.61e-05/0.007637, allocations: 28.38 kB / 331.3 MB, free: 9.066 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003905/0.008028, allocations: 390.7 kB / 331.7 MB, free: 8.656 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.008039, allocations: 4.125 kB / 331.7 MB, free: 8.652 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.698e-05/0.008066, allocations: 19.92 kB / 331.7 MB, free: 8.633 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.036e-06/0.008075, allocations: 8 kB / 331.7 MB, free: 8.625 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002771/0.008352, allocations: 226.5 kB / 331.9 MB, free: 8.402 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001198/0.009549, allocations: 1.241 MB / 333.2 MB, free: 7.07 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002421/0.009791, allocations: 158.5 kB / 333.3 MB, free: 6.906 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.844e-05/0.00989, allocations: 80.81 kB / 333.4 MB, free: 6.824 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.552e-05/0.009905, allocations: 7.938 kB / 333.4 MB, free: 6.816 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005308/0.01044, allocations: 205.2 kB / 333.6 MB, free: 6.582 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.603e-06/0.01044, allocations: 0 / 333.6 MB, free: 6.582 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006481/0.01109, allocations: 329.5 kB / 334 MB, free: 6.254 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.524e-05/0.01114, allocations: 110.8 kB / 334.1 MB, free: 6.121 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001798/0.01132, allocations: 269.7 kB / 334.3 MB, free: 5.852 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.949e-05/0.01134, allocations: 33.7 kB / 334.4 MB, free: 5.812 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.463e-05/0.01144, allocations: 208.3 kB / 334.6 MB, free: 5.602 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.323e-05/0.01148, allocations: 79.41 kB / 334.6 MB, free: 5.523 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.538e-05/0.01154, allocations: 61.98 kB / 334.7 MB, free: 5.457 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.51e-05/0.01163, allocations: 334.8 kB / 335 MB, free: 5.121 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001009/0.01173, allocations: 80.61 kB / 335.1 MB, free: 5.043 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001529/0.01188, allocations: 228.9 kB / 335.3 MB, free: 4.762 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002248/0.01211, allocations: 232.5 kB / 335.6 MB, free: 4.5 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.01211, allocations: 0 / 335.6 MB, free: 4.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003882/0.0125, allocations: 344.3 kB / 335.9 MB, free: 4.156 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.01251, allocations: 7.938 kB / 335.9 MB, free: 4.148 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.01252, allocations: 4 kB / 335.9 MB, free: 4.145 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001831/0.0127, allocations: 61.09 kB / 336 MB, free: 4.082 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001429/0.01285, allocations: 63.91 kB / 336 MB, free: 4.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008701/0.01372, allocations: 1.457 MB / 337.5 MB, free: 2.449 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001201/0.01384, allocations: 47.92 kB / 337.5 MB, free: 2.402 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.585e-05/0.01385, allocations: 16 kB / 337.5 MB, free: 2.387 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.0001111/0.01396, allocations: 157.6 kB / 337.7 MB, free: 2.223 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.807e-05/0.01399, allocations: 27.81 kB / 337.7 MB, free: 2.195 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.644e-05/0.01402, allocations: 34.27 kB / 337.8 MB, free: 2.164 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.01402, allocations: 0 / 337.8 MB, free: 2.164 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.01402, allocations: 7.938 kB / 337.8 MB, free: 2.156 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.01403, allocations: 7.984 kB / 337.8 MB, free: 2.148 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000206/0.01423, allocations: 276.6 kB / 338 MB, free: 1.836 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.01423, allocations: 0 / 338 MB, free: 1.836 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001029/0.01434, allocations: 39.92 kB / 338.1 MB, free: 1.797 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001108/0.01445, allocations: 48.81 kB / 338.1 MB, free: 1.746 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.52e-05/0.01446, allocations: 7.984 kB / 338.1 MB, free: 1.738 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006829/0.01514, allocations: 1.314 MB / 339.5 MB, free: 312 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.01515, allocations: 0 / 339.5 MB, free: 312 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004226/0.01557, allocations: 348.2 kB / 339.8 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.302e-05/0.01563, allocations: 51.69 kB / 339.8 MB, free: 15.89 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.996e-05/0.01565, allocations: 4 kB / 339.8 MB, free: 15.89 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.764e-05/0.01573, allocations: 19.98 kB / 339.9 MB, free: 15.87 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.717e-05/0.0158, allocations: 27.94 kB / 339.9 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.113e-05/0.01581, allocations: 4 kB / 339.9 MB, free: 15.84 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001301/0.01594, allocations: 197.1 kB / 340.1 MB, free: 15.64 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01594, allocations: 0 / 340.1 MB, free: 15.64 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002381/0.01618, allocations: 91.84 kB / 340.2 MB, free: 15.55 MB / 314.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.0008966/0.01707, allocations: 0.8781 MB / 341.1 MB, free: 14.64 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003903/0.01746, allocations: 303 kB / 341.4 MB, free: 14.34 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.01746, allocations: 4 kB / 341.4 MB, free: 14.33 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001587/0.01762, allocations: 198.7 kB / 341.6 MB, free: 14.12 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001801/0.0178, allocations: 39.09 kB / 341.6 MB, free: 14.09 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00261/0.02041, allocations: 2.875 MB / 344.5 MB, free: 11.06 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001082/0.02052, allocations: 168.8 kB / 344.6 MB, free: 10.88 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.412e-05/0.0206, allocations: 26.3 kB / 344.7 MB, free: 10.85 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000107/0.0207, allocations: 92.47 kB / 344.7 MB, free: 10.76 MB / 314.7 MB Notification: Performance of SimCode: time 8.92e-07/0.0207, allocations: 0 / 344.7 MB, free: 10.76 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02454/0.04524, allocations: 6.835 MB / 351.6 MB, free: 4.098 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.836/7.881, allocations: 6.953 kB / 351.6 MB, free: 4.094 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.74360799882561] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 7.974395535886288 7.986491659 7.97827364 Calling exit ...