Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001252/0.001252, 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.006482/0.006482, allocations: 165.7 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.8925/0.8925, allocations: 158.6 MB / 186.5 MB, free: 3.031 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.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 298.4 MB, free: 3.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.918e-06/1.153e-05, allocations: 6.281 kB / 298.5 MB, free: 3.504 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.002838/0.002849, allocations: 2.859 MB / 301.3 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.1307/0.1335, allocations: 0.7522 MB / 302.1 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003343/0.1339, allocations: 5 kB / 302.1 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001713/0.134, allocations: 61.75 kB / 302.1 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001859/0.1342, allocations: 109 kB / 302.2 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003295/0.1346, allocations: 115.6 kB / 302.3 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003166/0.1349, allocations: 431.6 kB / 302.8 MB, free: 13.03 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001682/0.135, allocations: 98.78 kB / 302.9 MB, free: 13.02 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000228/0.1353, allocations: 239.2 kB / 303.1 MB, free: 13 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001474/0.1354, allocations: 125.8 kB / 303.2 MB, free: 12.99 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.04e-05/0.1355, allocations: 35.25 kB / 303.3 MB, free: 12.99 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.119e-05/0.1355, allocations: 34.91 kB / 303.3 MB, free: 12.99 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.93e-05/0.1356, allocations: 81.08 kB / 303.4 MB, free: 12.97 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.1357, allocations: 132.8 kB / 303.5 MB, free: 12.96 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003777/0.136, allocations: 439.3 kB / 303.9 MB, free: 12.91 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.1361, allocations: 0 / 303.9 MB, free: 12.91 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1361, allocations: 0 / 303.9 MB, free: 12.91 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.202e-06/0.1361, allocations: 0 / 303.9 MB, free: 12.91 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.0007/0.1368, allocations: 0.5815 MB / 304.5 MB, free: 12.54 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.1368, allocations: 15.42 kB / 304.5 MB, free: 12.54 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.366e-05/0.1369, allocations: 72.53 kB / 304.6 MB, free: 12.5 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.754e-05/0.1369, allocations: 44.91 kB / 304.6 MB, free: 12.47 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003374/0.1372, allocations: 215.3 kB / 304.8 MB, free: 12.32 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.889e-05/0.1373, allocations: 130.1 kB / 305 MB, free: 12.19 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.151e-05/0.1374, allocations: 32.75 kB / 305 MB, free: 12.19 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004493/0.1378, allocations: 388.7 kB / 305.4 MB, free: 12.01 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.1378, allocations: 4.844 kB / 305.4 MB, free: 12.01 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.735e-05/0.1378, allocations: 19.91 kB / 305.4 MB, free: 11.99 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.1379, allocations: 8.469 kB / 305.4 MB, free: 11.99 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003145/0.1382, allocations: 215.5 kB / 305.6 MB, free: 11.93 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001209/0.1394, allocations: 1.247 MB / 306.9 MB, free: 11 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002392/0.1396, allocations: 158.7 kB / 307 MB, free: 10.92 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001032/0.1397, allocations: 85.83 kB / 307.1 MB, free: 10.88 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.483e-05/0.1397, allocations: 6.125 kB / 307.1 MB, free: 10.88 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002008/0.1399, allocations: 208.5 kB / 307.3 MB, free: 10.71 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 1.493e-06/0.1399, allocations: 0 / 307.3 MB, free: 10.71 MB / 282.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006548/0.1406, allocations: 332.2 kB / 307.6 MB, free: 10.58 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.512e-05/0.1406, allocations: 107 kB / 307.8 MB, free: 10.46 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001975/0.1408, allocations: 267.5 kB / 308 MB, free: 10.3 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.1408, allocations: 30.89 kB / 308 MB, free: 10.27 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.659e-05/0.1409, allocations: 220.4 kB / 308.3 MB, free: 10.08 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.71e-05/0.141, allocations: 66.78 kB / 308.3 MB, free: 10.03 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.731e-05/0.141, allocations: 66.72 kB / 308.4 MB, free: 9.984 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.33e-05/0.1411, allocations: 336.3 kB / 308.7 MB, free: 9.66 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.1412, allocations: 78.11 kB / 308.8 MB, free: 9.637 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001374/0.1413, allocations: 240.5 kB / 309 MB, free: 9.418 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002262/0.1415, allocations: 232.7 kB / 309.3 MB, free: 9.262 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.1415, allocations: 1.125 kB / 309.3 MB, free: 9.262 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004509/0.142, allocations: 339.3 kB / 309.6 MB, free: 9.129 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.142, allocations: 10.84 kB / 309.6 MB, free: 9.125 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.142, allocations: 11.62 kB / 309.6 MB, free: 9.117 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002071/0.1422, allocations: 55.69 kB / 309.7 MB, free: 9.098 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001737/0.1424, allocations: 61.58 kB / 309.7 MB, free: 9.098 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007872/0.1432, allocations: 1.465 MB / 311.2 MB, free: 7.664 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001423/0.1433, allocations: 47.73 kB / 311.2 MB, free: 7.641 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.322e-05/0.1434, allocations: 11.91 kB / 311.3 MB, free: 7.641 MB / 282.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.0001023/0.1435, allocations: 154.3 kB / 311.4 MB, free: 7.496 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.701e-05/0.1435, allocations: 26.61 kB / 311.4 MB, free: 7.484 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.031e-05/0.1435, allocations: 31.05 kB / 311.5 MB, free: 7.469 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.1435, allocations: 2.219 kB / 311.5 MB, free: 7.469 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.075e-06/0.1435, allocations: 3.938 kB / 311.5 MB, free: 7.465 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.1435, allocations: 4.047 kB / 311.5 MB, free: 7.465 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002036/0.1437, allocations: 280.3 kB / 311.7 MB, free: 7.254 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1437, allocations: 1.375 kB / 311.7 MB, free: 7.254 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001116/0.1438, allocations: 37.94 kB / 311.8 MB, free: 7.25 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001221/0.144, allocations: 51.67 kB / 311.8 MB, free: 7.23 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.144, allocations: 6.203 kB / 311.8 MB, free: 7.227 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005373/0.1445, allocations: 1.321 MB / 313.2 MB, free: 5.93 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.1445, allocations: 1.75 kB / 313.2 MB, free: 5.93 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004657/0.145, allocations: 348.7 kB / 313.5 MB, free: 5.75 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.464e-05/0.1451, allocations: 40.58 kB / 313.5 MB, free: 5.727 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.1e-05/0.1451, allocations: 8.062 kB / 313.5 MB, free: 5.723 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.874e-05/0.1452, allocations: 18.14 kB / 313.6 MB, free: 5.719 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.014e-05/0.1452, allocations: 32.94 kB / 313.6 MB, free: 5.711 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.183e-05/0.1452, allocations: 5.656 kB / 313.6 MB, free: 5.711 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000113/0.1453, allocations: 185.5 kB / 313.8 MB, free: 5.598 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1453, allocations: 0 / 313.8 MB, free: 5.598 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002523/0.1456, allocations: 92.52 kB / 313.9 MB, free: 5.574 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: 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.0005238/0.1461, allocations: 0.8812 MB / 314.8 MB, free: 4.867 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003834/0.1465, allocations: 305.1 kB / 315.1 MB, free: 4.691 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.1465, allocations: 1.219 kB / 315.1 MB, free: 4.691 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001625/0.1467, allocations: 196.8 kB / 315.2 MB, free: 4.551 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001925/0.1469, allocations: 36.8 kB / 315.3 MB, free: 4.535 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002571/0.1494, allocations: 2.852 MB / 318.1 MB, free: 2.598 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001176/0.1495, allocations: 162.9 kB / 318.3 MB, free: 2.512 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.791e-05/0.1496, allocations: 31.31 kB / 318.3 MB, free: 2.5 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.747e-05/0.1497, allocations: 98.73 kB / 318.4 MB, free: 2.426 MB / 282.7 MB Notification: Performance of SimCode: time 8.22e-07/0.1497, allocations: 0 / 318.4 MB, free: 2.426 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02527/0.175, allocations: 6.809 MB / 325.2 MB, free: 15.8 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.273/8.448, allocations: 13.12 kB / 325.2 MB, free: 15.79 MB / 298.7 MB " [Timeout remaining time 651] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.249352653510869] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 8.539805763401091 8.552858633 8.414336405 Calling exit ...