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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001268/0.001268, allocations: 103.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001268/0.001268, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.478/1.478, allocations: 227.7 MB / 247 MB, free: 10.29 MB / 206.1 MB 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.001905/0.001905, allocations: 68.75 kB / 307.3 MB, free: 396 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1108, allocations: 50.54 MB / 357.9 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004831/0.1157, allocations: 3.156 MB / 361 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001613/0.1174, allocations: 0.8217 MB / 361.9 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000269/0.1177, allocations: 8 kB / 361.9 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002325/0.1179, allocations: 63.38 kB / 361.9 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000297/0.1182, allocations: 99.05 kB / 362 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004843/0.1187, allocations: 119.8 kB / 362.1 MB, free: 9.543 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005808/0.1193, allocations: 414.2 kB / 362.5 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002876/0.1196, allocations: 143.7 kB / 362.7 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003469/0.12, allocations: 163.4 kB / 362.8 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003135/0.1203, allocations: 175.2 kB / 363 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.469e-05/0.1204, allocations: 36 kB / 363 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001312/0.1205, allocations: 39.94 kB / 363.1 MB, free: 8.586 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.583e-05/0.1206, allocations: 87.69 kB / 363.2 MB, free: 8.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002277/0.1208, allocations: 183.1 kB / 363.4 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005341/0.1214, allocations: 422.8 kB / 363.8 MB, free: 7.906 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1214, allocations: 0 / 363.8 MB, free: 7.906 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1214, allocations: 0 / 363.8 MB, free: 7.906 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.453e-05/0.1214, allocations: 0 / 363.8 MB, free: 7.906 MB / 302.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.001384/0.1228, allocations: 0.6626 MB / 364.4 MB, free: 7.191 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.1229, allocations: 12.03 kB / 364.4 MB, free: 7.18 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.411e-05/0.123, allocations: 70.66 kB / 364.5 MB, free: 7.102 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002247/0.1232, allocations: 48.47 kB / 364.6 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003999/0.1236, allocations: 281.3 kB / 364.8 MB, free: 6.742 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.84e-05/0.1237, allocations: 80.61 kB / 364.9 MB, free: 6.652 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.691e-05/0.1238, allocations: 32.38 kB / 364.9 MB, free: 6.621 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006018/0.1244, allocations: 342.7 kB / 365.3 MB, free: 6.273 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.1244, allocations: 0 / 365.3 MB, free: 6.273 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.257e-05/0.1245, allocations: 12 kB / 365.3 MB, free: 6.262 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.1245, allocations: 8 kB / 365.3 MB, free: 6.254 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004327/0.1249, allocations: 222.5 kB / 365.5 MB, free: 6.035 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002021/0.1269, allocations: 1.368 MB / 366.9 MB, free: 4.566 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003895/0.1273, allocations: 166.5 kB / 367 MB, free: 4.395 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001743/0.1275, allocations: 95.52 kB / 367.1 MB, free: 4.301 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.448e-05/0.1276, allocations: 7.984 kB / 367.1 MB, free: 4.293 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003884/0.128, allocations: 160.6 kB / 367.3 MB, free: 4.117 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.873e-06/0.128, allocations: 0 / 367.3 MB, free: 4.117 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001161/0.1291, allocations: 403.1 kB / 367.7 MB, free: 3.695 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.831e-05/0.1292, allocations: 110.8 kB / 367.8 MB, free: 3.562 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003252/0.1296, allocations: 262.6 kB / 368.1 MB, free: 3.293 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.877e-05/0.1296, allocations: 29.7 kB / 368.1 MB, free: 3.258 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001655/0.1298, allocations: 211.8 kB / 368.3 MB, free: 3.047 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.25e-05/0.1299, allocations: 71.05 kB / 368.4 MB, free: 2.977 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.13, allocations: 58.03 kB / 368.4 MB, free: 2.914 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.1302, allocations: 338.8 kB / 368.7 MB, free: 2.574 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001748/0.1303, allocations: 80.61 kB / 368.8 MB, free: 2.496 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000242/0.1306, allocations: 169.5 kB / 369 MB, free: 2.285 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000379/0.131, allocations: 243.5 kB / 369.2 MB, free: 2.012 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.131, allocations: 4 kB / 369.2 MB, free: 2.008 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007373/0.1317, allocations: 344.4 kB / 369.6 MB, free: 1.664 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.1318, allocations: 12.03 kB / 369.6 MB, free: 1.652 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.1318, allocations: 7.938 kB / 369.6 MB, free: 1.645 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002829/0.1321, allocations: 48.81 kB / 369.6 MB, free: 1.594 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002611/0.1323, allocations: 63.91 kB / 369.7 MB, free: 1.531 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1586/0.2909, allocations: 1.564 MB / 371.3 MB, free: 19.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004095/0.2914, allocations: 44.77 kB / 371.3 MB, free: 19.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.166e-05/0.2914, allocations: 15.97 kB / 371.3 MB, free: 19.18 MB / 302.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.0001831/0.2916, allocations: 153.7 kB / 371.5 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.499e-05/0.2917, allocations: 30.42 kB / 371.5 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.964e-05/0.2917, allocations: 32.77 kB / 371.5 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.2918, allocations: 2.875 kB / 371.5 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.2918, allocations: 0.5156 kB / 371.5 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.219e-06/0.2918, allocations: 1.531 kB / 371.5 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003967/0.2922, allocations: 337.3 kB / 371.9 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.2922, allocations: 0.9375 kB / 371.9 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002153/0.2924, allocations: 36.78 kB / 371.9 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000219/0.2927, allocations: 52.27 kB / 372 MB, free: 18.87 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.917e-05/0.2927, allocations: 5.859 kB / 372 MB, free: 18.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009261/0.2936, allocations: 1.425 MB / 373.4 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2936, allocations: 0 / 373.4 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006827/0.2943, allocations: 347.4 kB / 373.7 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.502e-05/0.2944, allocations: 121.5 kB / 373.8 MB, free: 17.37 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.798e-05/0.2945, allocations: 6.219 kB / 373.9 MB, free: 17.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001669/0.2946, allocations: 21.75 kB / 373.9 MB, free: 17.37 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.293e-05/0.2947, allocations: 26.23 kB / 373.9 MB, free: 17.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.455e-05/0.2948, allocations: 9.984 kB / 373.9 MB, free: 17.37 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001675/0.2949, allocations: 186.4 kB / 374.1 MB, free: 17.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2949, allocations: 0 / 374.1 MB, free: 17.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003874/0.2953, allocations: 86.72 kB / 374.2 MB, free: 17.29 MB / 302.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.0008497/0.2962, allocations: 0.8931 MB / 375.1 MB, free: 16.68 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005981/0.2968, allocations: 323.9 kB / 375.4 MB, free: 16.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.2968, allocations: 1.156 kB / 375.4 MB, free: 16.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002648/0.2971, allocations: 201 kB / 375.6 MB, free: 16.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002552/0.2973, allocations: 39.83 kB / 375.6 MB, free: 16.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003578/0.3009, allocations: 2.923 MB / 378.5 MB, free: 14.51 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001743/0.3011, allocations: 0.774 MB / 379.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001211/0.3012, allocations: 26.33 kB / 379.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001038/0.3014, allocations: 93.81 kB / 379.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3014, allocations: 0 / 379.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04924/0.3506, allocations: 5.956 MB / 385.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.89/12.24, allocations: 4.969 kB / 385.4 MB, free: 12.89 MB / 302.1 MB (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)