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.001497/0.001497, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001453/0.001453, allocations: 210.4 kB / 18.58 MB, free: 4.578 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.615/1.615, allocations: 227.7 MB / 247.1 MB, free: 10.35 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.002894/0.002894, allocations: 71.48 kB / 307.3 MB, free: 404 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1518/0.1547, allocations: 50.53 MB / 357.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005675/0.1605, allocations: 3.166 MB / 361 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001882/0.1624, allocations: 0.8217 MB / 361.9 MB, free: 9.836 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001881/0.1626, allocations: 8 kB / 361.9 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002499/0.1629, allocations: 59.38 kB / 361.9 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002363/0.1631, allocations: 107 kB / 362 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000501/0.1636, allocations: 115.8 kB / 362.1 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005203/0.1642, allocations: 410.2 kB / 362.5 MB, free: 9.148 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003057/0.1645, allocations: 143.7 kB / 362.7 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003113/0.1648, allocations: 163.4 kB / 362.8 MB, free: 8.844 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002418/0.1651, allocations: 175.2 kB / 363 MB, free: 8.672 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.76e-05/0.1651, allocations: 32 kB / 363 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.383e-05/0.1652, allocations: 48 kB / 363.1 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.34e-05/0.1653, allocations: 87.61 kB / 363.2 MB, free: 8.508 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001998/0.1655, allocations: 183.1 kB / 363.4 MB, free: 8.328 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004648/0.166, allocations: 422.8 kB / 363.8 MB, free: 7.914 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.166, allocations: 0 / 363.8 MB, free: 7.914 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.166, allocations: 0 / 363.8 MB, free: 7.914 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.166, allocations: 4 kB / 363.8 MB, free: 7.91 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.001156/0.1672, allocations: 0.6586 MB / 364.4 MB, free: 7.199 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.1672, allocations: 8.031 kB / 364.4 MB, free: 7.191 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001264/0.1674, allocations: 74.72 kB / 364.5 MB, free: 7.109 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001961/0.1676, allocations: 44.47 kB / 364.6 MB, free: 7.066 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004121/0.168, allocations: 281.3 kB / 364.8 MB, free: 6.754 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001027/0.1681, allocations: 80.61 kB / 364.9 MB, free: 6.664 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.374e-05/0.1682, allocations: 32.38 kB / 364.9 MB, free: 6.633 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000635/0.1688, allocations: 342.7 kB / 365.3 MB, free: 6.285 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.1688, allocations: 0 / 365.3 MB, free: 6.285 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.871e-05/0.1689, allocations: 16 kB / 365.3 MB, free: 6.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.1689, allocations: 8 kB / 365.3 MB, free: 6.262 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004964/0.1694, allocations: 218.5 kB / 365.5 MB, free: 6.047 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002431/0.1718, allocations: 1.372 MB / 366.9 MB, free: 4.574 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004182/0.1723, allocations: 174.5 kB / 367.1 MB, free: 4.395 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002025/0.1725, allocations: 88.83 kB / 367.1 MB, free: 4.305 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.316e-05/0.1725, allocations: 0 / 367.1 MB, free: 4.305 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004586/0.173, allocations: 163.9 kB / 367.3 MB, free: 4.125 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.043e-06/0.173, allocations: 0 / 367.3 MB, free: 4.125 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001374/0.1744, allocations: 401 kB / 367.7 MB, free: 3.707 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001304/0.1745, allocations: 110.8 kB / 367.8 MB, free: 3.574 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000368/0.1749, allocations: 262.6 kB / 368.1 MB, free: 3.305 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.205e-05/0.175, allocations: 33.7 kB / 368.1 MB, free: 3.266 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002142/0.1752, allocations: 215.8 kB / 368.3 MB, free: 3.051 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.737e-05/0.1753, allocations: 63.06 kB / 368.4 MB, free: 2.988 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001435/0.1754, allocations: 62.03 kB / 368.4 MB, free: 2.922 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002057/0.1756, allocations: 330.8 kB / 368.7 MB, free: 2.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000191/0.1758, allocations: 80.61 kB / 368.8 MB, free: 2.512 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002859/0.1761, allocations: 177.5 kB / 369 MB, free: 2.293 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004152/0.1765, allocations: 239.5 kB / 369.2 MB, free: 2.023 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.1766, allocations: 0 / 369.2 MB, free: 2.023 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007306/0.1773, allocations: 352.3 kB / 369.6 MB, free: 1.672 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.1773, allocations: 8 kB / 369.6 MB, free: 1.664 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.1773, allocations: 4 kB / 369.6 MB, free: 1.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002828/0.1776, allocations: 52.81 kB / 369.6 MB, free: 1.605 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003675/0.178, allocations: 63.91 kB / 369.7 MB, free: 1.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2543/0.4323, allocations: 1.561 MB / 371.3 MB, free: 19.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004337/0.4328, allocations: 53.62 kB / 371.3 MB, free: 19.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.662e-05/0.4328, allocations: 14.03 kB / 371.3 MB, free: 19.33 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.0002026/0.433, allocations: 149.2 kB / 371.5 MB, free: 19.22 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.183e-05/0.4331, allocations: 28.59 kB / 371.5 MB, free: 19.22 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.041e-05/0.4332, allocations: 30.86 kB / 371.5 MB, free: 19.21 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.4332, allocations: 1.984 kB / 371.5 MB, free: 19.21 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.4332, allocations: 0.5938 kB / 371.5 MB, free: 19.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.4332, allocations: 2.016 kB / 371.5 MB, free: 19.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000439/0.4336, allocations: 344.6 kB / 371.9 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.4337, allocations: 0.7969 kB / 371.9 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002402/0.4339, allocations: 40.2 kB / 371.9 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003109/0.4342, allocations: 52.75 kB / 372 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.153e-05/0.4343, allocations: 5.562 kB / 372 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001379/0.4357, allocations: 1.423 MB / 373.4 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.4357, allocations: 0.8438 kB / 373.4 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009734/0.4367, allocations: 350.4 kB / 373.7 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001515/0.4368, allocations: 119.7 kB / 373.9 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.406e-05/0.4369, allocations: 6.094 kB / 373.9 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001964/0.4371, allocations: 17.19 kB / 373.9 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001475/0.4372, allocations: 32.02 kB / 373.9 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-05/0.4373, allocations: 5.906 kB / 373.9 MB, free: 17.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003123/0.4376, allocations: 188 kB / 374.1 MB, free: 17.44 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.4376, allocations: 0 / 374.1 MB, free: 17.44 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005676/0.4382, allocations: 89.64 kB / 374.2 MB, free: 17.44 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.001181/0.4394, allocations: 0.8918 MB / 375.1 MB, free: 16.82 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008899/0.4403, allocations: 321.2 kB / 375.4 MB, free: 16.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.251e-06/0.4403, allocations: 0.7188 kB / 375.4 MB, free: 16.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000344/0.4406, allocations: 206.3 kB / 375.6 MB, free: 16.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003277/0.441, allocations: 34.81 kB / 375.6 MB, free: 16.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004639/0.4456, allocations: 2.926 MB / 378.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003455/0.446, allocations: 0.7696 MB / 379.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001437/0.4461, allocations: 26.5 kB / 379.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001331/0.4463, allocations: 93.42 kB / 379.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.4463, allocations: 7.875 kB / 379.4 MB, free: 13.88 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0383/0.4846, allocations: 5.945 MB / 385.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.9/13.38, allocations: 9 kB / 385.4 MB, free: 13.04 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 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)