Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0008808/0.0008808, allocations: 83.62 kB / 21.43 MB, free: 3.133 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.003977/0.003977, allocations: 165.6 kB / 24.7 MB, free: 8.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8889/0.8889, allocations: 158.6 MB / 186.5 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 298.5 MB, free: 3.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.267e-05/1.416e-05, allocations: 6.281 kB / 298.5 MB, free: 3.492 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002509/0.002524, allocations: 2.633 MB / 301.1 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.003558, allocations: 0.7369 MB / 301.8 MB, free: 92 kB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001302/0.003688, allocations: 12 kB / 301.8 MB, free: 80 kB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001318/0.00382, allocations: 55.44 kB / 301.9 MB, free: 24 kB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1312/0.135, allocations: 82.66 kB / 302 MB, free: 13.19 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004119/0.1354, allocations: 107.1 kB / 302.1 MB, free: 13.19 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003184/0.1357, allocations: 381.1 kB / 302.5 MB, free: 13.09 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00018/0.1359, allocations: 83.92 kB / 302.5 MB, free: 13.09 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002288/0.1361, allocations: 212.3 kB / 302.7 MB, free: 13.07 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001983/0.1363, allocations: 113.1 kB / 302.9 MB, free: 13.06 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.469e-05/0.1364, allocations: 32.28 kB / 302.9 MB, free: 13.06 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.177e-05/0.1365, allocations: 30.66 kB / 302.9 MB, free: 13.06 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.363e-05/0.1365, allocations: 71.14 kB / 303 MB, free: 13.05 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001059/0.1366, allocations: 116.6 kB / 303.1 MB, free: 13.04 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005062/0.1371, allocations: 373.1 kB / 303.5 MB, free: 13.01 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.982e-06/0.1371, allocations: 0 / 303.5 MB, free: 13.01 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1371, allocations: 1.125 kB / 303.5 MB, free: 13.01 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.114e-06/0.1371, allocations: 0 / 303.5 MB, free: 13.01 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.000871/0.138, allocations: 0.5427 MB / 304 MB, free: 12.64 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.603e-05/0.1381, allocations: 16.69 kB / 304 MB, free: 12.64 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.525e-05/0.1381, allocations: 64.11 kB / 304.1 MB, free: 12.6 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.981e-05/0.1382, allocations: 35.12 kB / 304.1 MB, free: 12.59 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003203/0.1385, allocations: 207.3 kB / 304.3 MB, free: 12.43 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.637e-05/0.1386, allocations: 129.8 kB / 304.4 MB, free: 12.31 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.302e-05/0.1386, allocations: 27.47 kB / 304.5 MB, free: 12.31 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003943/0.139, allocations: 347 kB / 304.8 MB, free: 12.18 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.139, allocations: 1.531 kB / 304.8 MB, free: 12.18 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.368e-05/0.139, allocations: 20.34 kB / 304.8 MB, free: 12.18 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.1391, allocations: 7.344 kB / 304.8 MB, free: 12.18 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000242/0.1393, allocations: 188.4 kB / 305 MB, free: 12.18 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001046/0.1403, allocations: 1.022 MB / 306 MB, free: 11.46 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002249/0.1406, allocations: 147.1 kB / 306.2 MB, free: 11.39 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.314e-05/0.1407, allocations: 74.5 kB / 306.3 MB, free: 11.36 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.601e-05/0.1407, allocations: 4.625 kB / 306.3 MB, free: 11.36 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002133/0.1409, allocations: 219.9 kB / 306.5 MB, free: 11.18 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 1.182e-06/0.1409, allocations: 0 / 306.5 MB, free: 11.18 MB / 282.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006168/0.1415, allocations: 309.7 kB / 306.8 MB, free: 11.06 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.581e-05/0.1415, allocations: 107.2 kB / 306.9 MB, free: 10.93 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000152/0.1417, allocations: 230.4 kB / 307.1 MB, free: 10.79 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.516e-05/0.1417, allocations: 37.08 kB / 307.2 MB, free: 10.75 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.719e-05/0.1418, allocations: 182.2 kB / 307.3 MB, free: 10.59 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.572e-05/0.1418, allocations: 72.75 kB / 307.4 MB, free: 10.54 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.282e-05/0.1419, allocations: 58.02 kB / 307.5 MB, free: 10.5 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.085e-05/0.1419, allocations: 330.6 kB / 307.8 MB, free: 10.18 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.683e-05/0.142, allocations: 66.08 kB / 307.8 MB, free: 10.16 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001234/0.1421, allocations: 195.8 kB / 308 MB, free: 9.98 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001762/0.1423, allocations: 186.5 kB / 308.2 MB, free: 9.859 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1423, allocations: 3.938 kB / 308.2 MB, free: 9.855 MB / 282.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002923/0.1426, allocations: 276.9 kB / 308.5 MB, free: 9.73 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.1426, allocations: 6.781 kB / 308.5 MB, free: 9.73 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.1426, allocations: 2.25 kB / 308.5 MB, free: 9.73 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000222/0.1428, allocations: 58.03 kB / 308.6 MB, free: 9.711 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000143/0.143, allocations: 53.48 kB / 308.6 MB, free: 9.707 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006889/0.1437, allocations: 1.463 MB / 310.1 MB, free: 8.277 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001132/0.1438, allocations: 35.48 kB / 310.1 MB, free: 8.262 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.686e-05/0.1438, allocations: 16.41 kB / 310.1 MB, free: 8.254 MB / 282.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 8.724e-05/0.1439, allocations: 148.7 kB / 310.3 MB, free: 8.121 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.304e-05/0.1439, allocations: 26.84 kB / 310.3 MB, free: 8.105 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.872e-05/0.1439, allocations: 30.02 kB / 310.3 MB, free: 8.086 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.1439, allocations: 6.625 kB / 310.3 MB, free: 8.082 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.1439, allocations: 7.609 kB / 310.3 MB, free: 8.082 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.1439, allocations: 0.8438 kB / 310.3 MB, free: 8.082 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001984/0.1441, allocations: 260.3 kB / 310.6 MB, free: 7.883 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.1441, allocations: 0 / 310.6 MB, free: 7.883 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.634e-05/0.1442, allocations: 35.23 kB / 310.6 MB, free: 7.879 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001208/0.1444, allocations: 51.41 kB / 310.7 MB, free: 7.859 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.461e-05/0.1444, allocations: 7.891 kB / 310.7 MB, free: 7.855 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005196/0.1449, allocations: 1.309 MB / 312 MB, free: 6.578 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1449, allocations: 3.938 kB / 312 MB, free: 6.574 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003717/0.1453, allocations: 335.4 kB / 312.3 MB, free: 6.395 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.522e-05/0.1453, allocations: 34.53 kB / 312.4 MB, free: 6.375 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.015e-05/0.1453, allocations: 8.328 kB / 312.4 MB, free: 6.371 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.779e-05/0.1454, allocations: 21.92 kB / 312.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.843e-05/0.1455, allocations: 32.75 kB / 312.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.598e-06/0.1455, allocations: 5.219 kB / 312.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.342e-05/0.1456, allocations: 163.9 kB / 312.6 MB, free: 6.258 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1456, allocations: 0 / 312.6 MB, free: 6.258 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002285/0.1458, allocations: 83.31 kB / 312.7 MB, free: 6.238 MB / 282.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.0004869/0.1463, allocations: 0.8592 MB / 313.5 MB, free: 5.539 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003549/0.1467, allocations: 281 kB / 313.8 MB, free: 5.379 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1467, allocations: 1.312 kB / 313.8 MB, free: 5.379 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001455/0.1468, allocations: 186.9 kB / 314 MB, free: 5.246 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002115/0.147, allocations: 45.88 kB / 314 MB, free: 5.227 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002183/0.1492, allocations: 2.549 MB / 316.6 MB, free: 3.457 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001175/0.1493, allocations: 155.2 kB / 316.7 MB, free: 3.375 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.666e-05/0.1494, allocations: 25.12 kB / 316.8 MB, free: 3.367 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.365e-05/0.1495, allocations: 84.86 kB / 316.8 MB, free: 3.301 MB / 282.7 MB Notification: Performance of SimCode: time 7.82e-07/0.1495, allocations: 0 / 316.8 MB, free: 3.301 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02506/0.1746, allocations: 6.447 MB / 323.3 MB, free: 1.086 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.016/8.191, allocations: 16.95 kB / 323.3 MB, free: 1.07 MB / 282.7 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.916678112000227] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 8.281126850284636 8.28997536 8.151145072 Calling exit ...