Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.001186/0.001186, 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.0013/0.0013, 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.9051/0.9051, allocations: 177.1 MB / 204.3 MB, free: 5.723 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.SwitchWithArc,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 0 / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.373e-05/2.546e-05, allocations: 4.672 kB / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003361/0.003386, allocations: 2.712 MB / 327.3 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001176/0.004563, allocations: 0.7399 MB / 328 MB, free: 12.44 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001355/0.004698, allocations: 7.938 kB / 328 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001389/0.004837, allocations: 43.56 kB / 328.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001462/0.004983, allocations: 99.08 kB / 328.2 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003238/0.005307, allocations: 107.6 kB / 328.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003054/0.005612, allocations: 378.2 kB / 328.7 MB, free: 11.81 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001645/0.005777, allocations: 83.66 kB / 328.7 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001844/0.005961, allocations: 211.6 kB / 328.9 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001364/0.006098, allocations: 111.7 kB / 329.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.985e-05/0.006138, allocations: 36 kB / 329.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.029e-05/0.006168, allocations: 28 kB / 329.1 MB, free: 11.35 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.232e-05/0.00622, allocations: 75.73 kB / 329.2 MB, free: 11.28 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.773e-05/0.006308, allocations: 111.7 kB / 329.3 MB, free: 11.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002974/0.006605, allocations: 382.7 kB / 329.7 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.006609, allocations: 0 / 329.7 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.00661, allocations: 0 / 329.7 MB, free: 10.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.006616, allocations: 0 / 329.7 MB, free: 10.79 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.0007202/0.007336, allocations: 0.5333 MB / 330.2 MB, free: 10.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.007378, allocations: 8.031 kB / 330.2 MB, free: 10.22 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.542e-05/0.007434, allocations: 70.72 kB / 330.3 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.967e-05/0.007493, allocations: 36.7 kB / 330.3 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003184/0.007812, allocations: 205.9 kB / 330.5 MB, free: 9.879 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.051e-05/0.007892, allocations: 128 kB / 330.6 MB, free: 9.73 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.654e-05/0.007929, allocations: 40.36 kB / 330.7 MB, free: 9.691 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003651/0.008294, allocations: 345.9 kB / 331 MB, free: 9.328 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.407e-06/0.008303, allocations: 192 / 331 MB, free: 9.328 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.175e-05/0.008325, allocations: 15.94 kB / 331 MB, free: 9.312 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.008332, allocations: 8 kB / 331 MB, free: 9.305 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002285/0.00856, allocations: 186.5 kB / 331.2 MB, free: 9.121 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00106/0.00962, allocations: 1.024 MB / 332.3 MB, free: 8.023 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002235/0.009844, allocations: 150.5 kB / 332.4 MB, free: 7.867 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.4e-05/0.009928, allocations: 72.83 kB / 332.5 MB, free: 7.793 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.425e-05/0.009942, allocations: 0 / 332.5 MB, free: 7.793 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002113/0.01015, allocations: 213.2 kB / 332.7 MB, free: 7.551 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 9.92e-07/0.01015, allocations: 0 / 332.7 MB, free: 7.551 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005998/0.01075, allocations: 313.6 kB / 333 MB, free: 7.238 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.914e-05/0.0108, allocations: 102.8 kB / 333.1 MB, free: 7.113 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001581/0.01096, allocations: 237.7 kB / 333.3 MB, free: 6.871 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.337e-05/0.01098, allocations: 33.7 kB / 333.4 MB, free: 6.832 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.139e-05/0.01107, allocations: 176.5 kB / 333.5 MB, free: 6.652 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.176e-05/0.01111, allocations: 75.41 kB / 333.6 MB, free: 6.578 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.255e-05/0.01117, allocations: 57.66 kB / 333.7 MB, free: 6.516 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.211e-05/0.01125, allocations: 334.8 kB / 334 MB, free: 6.18 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003302/0.01158, allocations: 67.97 kB / 334 MB, free: 6.113 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000127/0.01171, allocations: 188.7 kB / 334.2 MB, free: 5.883 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001903/0.0119, allocations: 205 kB / 334.4 MB, free: 5.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.0119, allocations: 0 / 334.4 MB, free: 5.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002846/0.01219, allocations: 268.5 kB / 334.7 MB, free: 5.391 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.0122, allocations: 8 kB / 334.7 MB, free: 5.383 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.01221, allocations: 224 / 334.7 MB, free: 5.383 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001909/0.0124, allocations: 60.81 kB / 334.8 MB, free: 5.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001472/0.01255, allocations: 47.92 kB / 334.8 MB, free: 5.273 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008699/0.01342, allocations: 1.473 MB / 336.3 MB, free: 3.691 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000121/0.01354, allocations: 43.77 kB / 336.3 MB, free: 3.648 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.297e-05/0.01355, allocations: 8 kB / 336.3 MB, free: 3.641 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.0001017/0.01365, allocations: 146.8 kB / 336.5 MB, free: 3.488 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.185e-05/0.01367, allocations: 27.8 kB / 336.5 MB, free: 3.461 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.748e-05/0.0137, allocations: 26.27 kB / 336.5 MB, free: 3.438 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.0137, allocations: 4.094 kB / 336.5 MB, free: 3.434 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.01371, allocations: 4 kB / 336.5 MB, free: 3.43 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.01371, allocations: 0 / 336.5 MB, free: 3.43 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001952/0.0139, allocations: 268.5 kB / 336.8 MB, free: 3.125 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.01391, allocations: 3.938 kB / 336.8 MB, free: 3.121 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.07e-05/0.014, allocations: 27.98 kB / 336.8 MB, free: 3.094 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001212/0.01412, allocations: 56.81 kB / 336.9 MB, free: 3.035 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/0.01413, allocations: 4 kB / 336.9 MB, free: 3.031 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006601/0.01479, allocations: 1.311 MB / 338.2 MB, free: 1.609 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.01479, allocations: 0 / 338.2 MB, free: 1.609 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003792/0.01517, allocations: 333.6 kB / 338.5 MB, free: 1.262 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.475e-05/0.01523, allocations: 35.86 kB / 338.6 MB, free: 1.227 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.931e-05/0.01525, allocations: 4 kB / 338.6 MB, free: 1.223 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.559e-05/0.01532, allocations: 27.86 kB / 338.6 MB, free: 1.191 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.967e-05/0.01538, allocations: 23.95 kB / 338.6 MB, free: 1.168 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.136e-05/0.01539, allocations: 11.98 kB / 338.6 MB, free: 1.156 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.143e-05/0.01549, allocations: 161.2 kB / 338.8 MB, free: 1 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01549, allocations: 0 / 338.8 MB, free: 1 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002394/0.01572, allocations: 91.78 kB / 338.9 MB, free: 0.9102 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.0005672/0.01629, allocations: 0.8762 MB / 339.8 MB, free: 12 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003639/0.01666, allocations: 270.5 kB / 340 MB, free: 15.73 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.01666, allocations: 0 / 340 MB, free: 15.73 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001537/0.01681, allocations: 187.1 kB / 340.2 MB, free: 15.54 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002128/0.01702, allocations: 48.41 kB / 340.2 MB, free: 15.49 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002492/0.01952, allocations: 2.54 MB / 342.8 MB, free: 12.81 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.993e-05/0.01961, allocations: 150.9 kB / 342.9 MB, free: 12.64 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.067e-05/0.01968, allocations: 26.28 kB / 343 MB, free: 12.62 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.813e-05/0.01976, allocations: 84.47 kB / 343 MB, free: 12.54 MB / 314.7 MB Notification: Performance of SimCode: time 7.41e-07/0.01977, allocations: 0 / 343 MB, free: 12.54 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0231/0.04287, allocations: 6.444 MB / 349.5 MB, free: 6.262 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.888/7.931, allocations: 7.812 kB / 349.5 MB, free: 6.258 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.740306071005762] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 8.022370743565261 8.033616623 8.025155065 Calling exit ...