Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.0008617/0.0008617, 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.001018/0.001018, 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.8576/0.8576, allocations: 173.4 MB / 200.5 MB, free: 9.418 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.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 318.4 MB, free: 6.328 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.028e-05/1.161e-05, allocations: 2.281 kB / 318.4 MB, free: 6.324 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002438/0.00245, allocations: 2.668 MB / 321.1 MB, free: 3.637 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008799/0.003329, allocations: 0.7087 MB / 321.8 MB, free: 2.922 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001107/0.00344, allocations: 8 kB / 321.8 MB, free: 2.914 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001185/0.003559, allocations: 51.44 kB / 321.9 MB, free: 2.863 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001198/0.003678, allocations: 99.06 kB / 322 MB, free: 2.766 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002531/0.003932, allocations: 103.7 kB / 322.1 MB, free: 2.664 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002754/0.004207, allocations: 382.2 kB / 322.5 MB, free: 2.289 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001511/0.004358, allocations: 83.66 kB / 322.5 MB, free: 2.203 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001701/0.004528, allocations: 211.5 kB / 322.7 MB, free: 1.996 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001259/0.004654, allocations: 115.7 kB / 322.9 MB, free: 1.883 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.787e-05/0.004692, allocations: 32 kB / 322.9 MB, free: 1.852 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.773e-05/0.00472, allocations: 28 kB / 322.9 MB, free: 1.824 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.277e-05/0.004763, allocations: 71.73 kB / 323 MB, free: 1.754 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001126/0.004875, allocations: 119.7 kB / 323.1 MB, free: 1.637 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002733/0.005148, allocations: 378.8 kB / 323.5 MB, free: 1.266 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.693e-06/0.00515, allocations: 0 / 323.5 MB, free: 1.266 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.005151, allocations: 0 / 323.5 MB, free: 1.266 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.005156, allocations: 0 / 323.5 MB, free: 1.266 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0007168/0.005872, allocations: 0.53 MB / 324 MB, free: 0.707 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.005913, allocations: 12.92 kB / 324 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.974e-05/0.005963, allocations: 62.72 kB / 324.1 MB, free: 0.625 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.678e-05/0.00602, allocations: 44.7 kB / 324.1 MB, free: 0.582 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002525/0.006272, allocations: 198 kB / 324.3 MB, free: 368 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.885e-05/0.006341, allocations: 128 kB / 324.4 MB, free: 216 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.347e-05/0.006374, allocations: 28.33 kB / 324.5 MB, free: 188 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003291/0.006703, allocations: 357.8 kB / 324.8 MB, free: 15.81 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.006712, allocations: 4.188 kB / 324.8 MB, free: 15.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.036e-05/0.006732, allocations: 11.94 kB / 324.8 MB, free: 15.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.006739, allocations: 8 kB / 324.8 MB, free: 15.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002151/0.006954, allocations: 190.5 kB / 325 MB, free: 15.6 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001093/0.008047, allocations: 1.016 MB / 326 MB, free: 14.51 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000218/0.008265, allocations: 146.5 kB / 326.2 MB, free: 14.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.25e-05/0.008348, allocations: 81.11 kB / 326.3 MB, free: 14.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.592e-05/0.008364, allocations: 7.953 kB / 326.3 MB, free: 14.27 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000192/0.008556, allocations: 204.4 kB / 326.5 MB, free: 14.04 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 9.71e-07/0.008557, allocations: 0 / 326.5 MB, free: 14.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005729/0.00913, allocations: 314.1 kB / 326.8 MB, free: 13.72 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.381e-05/0.009174, allocations: 106.8 kB / 326.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001469/0.00932, allocations: 233.7 kB / 327.1 MB, free: 13.35 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.009337, allocations: 29.7 kB / 327.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.747e-05/0.009415, allocations: 180.5 kB / 327.3 MB, free: 13.13 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.82e-05/0.009453, allocations: 71.42 kB / 327.4 MB, free: 13.06 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.024e-05/0.009513, allocations: 65.64 kB / 327.4 MB, free: 12.99 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.482e-05/0.009588, allocations: 330.8 kB / 327.8 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.032e-05/0.009669, allocations: 67.97 kB / 327.8 MB, free: 12.59 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001258/0.009794, allocations: 196 kB / 328 MB, free: 12.36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000175/0.009969, allocations: 192.1 kB / 328.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.009973, allocations: 4 kB / 328.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002718/0.01024, allocations: 276.5 kB / 328.5 MB, free: 11.86 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.01026, allocations: 4 kB / 328.5 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.01026, allocations: 4 kB / 328.5 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000168/0.01043, allocations: 53.03 kB / 328.5 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001202/0.01055, allocations: 51.92 kB / 328.6 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001008/0.01156, allocations: 1.468 MB / 330.1 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001097/0.01167, allocations: 35.77 kB / 330.1 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.247e-05/0.01168, allocations: 16 kB / 330.1 MB, free: 10.12 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 9.24e-05/0.01177, allocations: 138.4 kB / 330.3 MB, free: 9.973 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.209e-05/0.0118, allocations: 27.8 kB / 330.3 MB, free: 9.945 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.591e-05/0.01182, allocations: 34.27 kB / 330.3 MB, free: 9.918 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.01182, allocations: 4 kB / 330.3 MB, free: 9.914 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.01182, allocations: 0 / 330.3 MB, free: 9.914 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.01183, allocations: 4.062 kB / 330.3 MB, free: 9.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001815/0.01201, allocations: 264.5 kB / 330.6 MB, free: 9.609 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.01201, allocations: 7.922 kB / 330.6 MB, free: 9.602 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.021e-05/0.0121, allocations: 39.92 kB / 330.6 MB, free: 9.562 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001038/0.01221, allocations: 52.75 kB / 330.7 MB, free: 9.508 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.01222, allocations: 8 kB / 330.7 MB, free: 9.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006295/0.01285, allocations: 1.307 MB / 332 MB, free: 8.078 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.01285, allocations: 4.031 kB / 332 MB, free: 8.074 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003541/0.0132, allocations: 324.6 kB / 332.3 MB, free: 7.738 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.141e-05/0.01325, allocations: 40.08 kB / 332.4 MB, free: 7.699 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.01327, allocations: 11.94 kB / 332.4 MB, free: 7.688 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.29e-05/0.01334, allocations: 19.92 kB / 332.4 MB, free: 7.668 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.525e-05/0.0134, allocations: 27.95 kB / 332.4 MB, free: 7.641 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.939e-06/0.01341, allocations: 7.984 kB / 332.4 MB, free: 7.633 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.976e-05/0.0135, allocations: 161.2 kB / 332.6 MB, free: 7.477 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0135, allocations: 0 / 332.6 MB, free: 7.477 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002174/0.01372, allocations: 79.84 kB / 332.7 MB, free: 7.398 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.0005337/0.01425, allocations: 0.8668 MB / 333.5 MB, free: 6.5 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003337/0.01458, allocations: 270.5 kB / 333.8 MB, free: 6.223 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.01459, allocations: 0 / 333.8 MB, free: 6.223 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001485/0.01473, allocations: 201.3 kB / 334 MB, free: 6.016 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001865/0.01492, allocations: 52.84 kB / 334 MB, free: 5.961 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002294/0.01722, allocations: 2.533 MB / 336.6 MB, free: 3.281 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.662e-05/0.0173, allocations: 154.8 kB / 336.7 MB, free: 3.109 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.198e-05/0.01736, allocations: 26.27 kB / 336.7 MB, free: 3.086 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.343e-05/0.01745, allocations: 88.47 kB / 336.8 MB, free: 3 MB / 298.7 MB Notification: Performance of SimCode: time 6.71e-07/0.01745, allocations: 3.938 kB / 336.8 MB, free: 2.996 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02051/0.03796, allocations: 6.444 MB / 343.3 MB, free: 12.72 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.821/7.859, allocations: 0 / 343.3 MB, free: 12.72 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.580387049354613] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 7.951016792096198 7.961990627 7.95435836 Calling exit ...