Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001733/0.001733, allocations: 123.6 kB / 18.46 MB, free: 4.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00213/0.00213, allocations: 205.7 kB / 21.4 MB, free: 1.645 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.457/1.457, allocations: 227.7 MB / 251.9 MB, free: 15.89 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 75.77 kB / 365.2 MB, free: 200 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.104, allocations: 50.55 MB / 415.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.00466/0.1087, allocations: 3.154 MB / 418.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001537/0.1102, allocations: 0.8217 MB / 419.8 MB, free: 9.605 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001665/0.1105, allocations: 4 kB / 419.8 MB, free: 9.602 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001961/0.1107, allocations: 63.36 kB / 419.8 MB, free: 9.539 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001991/0.1109, allocations: 103 kB / 419.9 MB, free: 9.438 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004216/0.1113, allocations: 119.7 kB / 420 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004497/0.1118, allocations: 418.2 kB / 420.5 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002644/0.112, allocations: 139.7 kB / 420.6 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002651/0.1123, allocations: 167.4 kB / 420.8 MB, free: 8.602 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002241/0.1126, allocations: 175.2 kB / 420.9 MB, free: 8.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.113e-05/0.1126, allocations: 32 kB / 421 MB, free: 8.398 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.454e-05/0.1127, allocations: 47.98 kB / 421 MB, free: 8.352 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.074e-05/0.1128, allocations: 71.77 kB / 421.1 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001907/0.113, allocations: 191.1 kB / 421.3 MB, free: 8.094 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004907/0.1135, allocations: 430.2 kB / 421.7 MB, free: 7.672 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.1135, allocations: 0 / 421.7 MB, free: 7.672 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.1135, allocations: 0 / 421.7 MB, free: 7.672 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.1135, allocations: 4 kB / 421.7 MB, free: 7.668 MB / 350.1 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.001095/0.1146, allocations: 0.6584 MB / 422.3 MB, free: 6.961 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.1147, allocations: 8.031 kB / 422.3 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.188e-05/0.1148, allocations: 74.66 kB / 422.4 MB, free: 6.871 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001809/0.1149, allocations: 52.64 kB / 422.5 MB, free: 6.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004373/0.1154, allocations: 293.3 kB / 422.8 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.047e-05/0.1155, allocations: 84.62 kB / 422.8 MB, free: 6.398 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.198e-05/0.1156, allocations: 28.38 kB / 422.9 MB, free: 6.371 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005751/0.1161, allocations: 334.7 kB / 423.2 MB, free: 6.027 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.1162, allocations: 4 kB / 423.2 MB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.456e-05/0.1162, allocations: 16 kB / 423.2 MB, free: 6.008 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/0.1162, allocations: 8 kB / 423.2 MB, free: 6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004348/0.1167, allocations: 218.5 kB / 423.4 MB, free: 5.789 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001981/0.1187, allocations: 1.36 MB / 424.8 MB, free: 4.328 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003635/0.119, allocations: 174.4 kB / 425 MB, free: 4.148 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001719/0.1192, allocations: 94.88 kB / 425.1 MB, free: 4.055 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.505e-05/0.1193, allocations: 11.92 kB / 425.1 MB, free: 4.043 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002974/0.1196, allocations: 156.5 kB / 425.2 MB, free: 3.871 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.723e-06/0.1196, allocations: 0 / 425.2 MB, free: 3.871 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001147/0.1207, allocations: 407.5 kB / 425.6 MB, free: 3.445 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.461e-05/0.1208, allocations: 106.8 kB / 425.7 MB, free: 3.316 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002812/0.1211, allocations: 262.6 kB / 426 MB, free: 3.051 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.018e-05/0.1211, allocations: 33.69 kB / 426 MB, free: 3.012 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001541/0.1213, allocations: 212.3 kB / 426.2 MB, free: 2.801 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.455e-05/0.1214, allocations: 75.36 kB / 426.3 MB, free: 2.727 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001019/0.1215, allocations: 66.02 kB / 426.4 MB, free: 2.656 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.1217, allocations: 338.8 kB / 426.7 MB, free: 2.316 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001564/0.1218, allocations: 76.62 kB / 426.8 MB, free: 2.242 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000248/0.1221, allocations: 181.5 kB / 426.9 MB, free: 2.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003634/0.1224, allocations: 235.6 kB / 427.2 MB, free: 1.754 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.1225, allocations: 0 / 427.2 MB, free: 1.754 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007176/0.1232, allocations: 348.4 kB / 427.5 MB, free: 1.406 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.1232, allocations: 8 kB / 427.5 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.1232, allocations: 4 kB / 427.5 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002709/0.1235, allocations: 60.97 kB / 427.6 MB, free: 1.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002503/0.1238, allocations: 59.91 kB / 427.6 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001631/0.1254, allocations: 1.564 MB / 429.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002488/0.1257, allocations: 47.72 kB / 429.3 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.475e-05/0.1257, allocations: 16.09 kB / 429.3 MB, free: 15.51 MB / 366.1 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.0001683/0.1259, allocations: 148.1 kB / 429.4 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.281e-05/0.1259, allocations: 35.78 kB / 429.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.054e-05/0.126, allocations: 26.19 kB / 429.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.126, allocations: 4 kB / 429.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-06/0.126, allocations: 3.938 kB / 429.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.126, allocations: 3.984 kB / 429.5 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003586/0.1264, allocations: 337.4 kB / 429.8 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.1264, allocations: 8 kB / 429.8 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001924/0.1266, allocations: 39.91 kB / 429.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001872/0.1268, allocations: 56.75 kB / 429.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.486e-05/0.1268, allocations: 0 / 429.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001395/0.1282, allocations: 1.426 MB / 431.3 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1282, allocations: 0 / 431.3 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007246/0.129, allocations: 349.9 kB / 431.7 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001219/0.1291, allocations: 124.8 kB / 431.8 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.576e-05/0.1291, allocations: 4 kB / 431.8 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001658/0.1293, allocations: 20.11 kB / 431.8 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.459e-05/0.1294, allocations: 35.89 kB / 431.9 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.507e-05/0.1294, allocations: 4 kB / 431.9 MB, free: 12.67 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001867/0.1296, allocations: 189.9 kB / 432.1 MB, free: 12.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1296, allocations: 0 / 432.1 MB, free: 12.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003801/0.13, allocations: 91.84 kB / 432.1 MB, free: 12.39 MB / 366.1 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.001092/0.1311, allocations: 0.8824 MB / 433 MB, free: 11.47 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000652/0.1318, allocations: 314.7 kB / 433.3 MB, free: 11.15 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1318, allocations: 0 / 433.3 MB, free: 11.15 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003151/0.1321, allocations: 198.6 kB / 433.5 MB, free: 10.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002725/0.1324, allocations: 39.61 kB / 433.6 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004367/0.1368, allocations: 2.912 MB / 436.5 MB, free: 7.852 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004747/0.1373, allocations: 0.7752 MB / 437.3 MB, free: 7.051 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000117/0.1374, allocations: 26.28 kB / 437.3 MB, free: 7.023 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001414/0.1375, allocations: 99.41 kB / 437.4 MB, free: 6.926 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1375, allocations: 0 / 437.4 MB, free: 6.926 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03522/0.1728, allocations: 6.075 MB / 443.5 MB, free: 1.062 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/11.82, allocations: 7.219 kB / 443.5 MB, free: 1.059 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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-beta_om_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.496221489040181] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 12.082948769093491 12.093391429 11.977814909 Calling exit ...