Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 95.67 kB / 16.3 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001867/0.001867, allocations: 181.5 kB / 17.19 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.832/1.832, allocations: 205.4 MB / 223.3 MB, free: 13.18 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004932/0.0004936, allocations: 19.28 kB / 280.1 MB, free: 3.75 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1115, allocations: 47.58 MB / 327.7 MB, free: 4.102 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004085/0.1157, allocations: 2.494 MB / 330.2 MB, free: 1.59 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001869/0.1176, allocations: 0.7687 MB / 331 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002098/0.1179, allocations: 7.938 kB / 331 MB, free: 0.8047 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 9.715e-05/0.118, allocations: 47.67 kB / 331 MB, free: 0.7578 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002766/0.1183, allocations: 115.7 kB / 331.1 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003997/0.1187, allocations: 83.84 kB / 331.2 MB, free: 0.5625 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004167/0.1191, allocations: 283.4 kB / 331.5 MB, free: 292 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002538/0.1194, allocations: 102.8 kB / 331.6 MB, free: 192 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001829/0.1196, allocations: 135.5 kB / 331.7 MB, free: 56 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002327/0.1198, allocations: 147.4 kB / 331.9 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.854e-05/0.1198, allocations: 20 kB / 331.9 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.208e-05/0.1199, allocations: 24 kB / 331.9 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.465e-05/0.12, allocations: 59.75 kB / 332 MB, free: 15.81 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001011/0.1201, allocations: 93.52 kB / 332.1 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003355/0.1204, allocations: 303.4 kB / 332.3 MB, free: 15.41 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.1204, allocations: 0 / 332.3 MB, free: 15.41 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.1204, allocations: 0 / 332.3 MB, free: 15.41 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.1205, allocations: 0 / 332.3 MB, free: 15.41 MB / 286.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.001088/0.1216, allocations: 0.5963 MB / 332.9 MB, free: 14.77 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.1216, allocations: 8.031 kB / 333 MB, free: 14.76 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.05e-05/0.1217, allocations: 47.53 kB / 333 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003534/0.1221, allocations: 276 kB / 333.3 MB, free: 14.4 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001076/0.1222, allocations: 80.05 kB / 333.3 MB, free: 14.31 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.119e-05/0.1222, allocations: 36 kB / 333.4 MB, free: 14.27 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006312/0.1229, allocations: 330.7 kB / 333.7 MB, free: 13.93 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.1229, allocations: 0 / 333.7 MB, free: 13.93 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.989e-05/0.123, allocations: 12 kB / 333.7 MB, free: 13.92 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.298e-05/0.123, allocations: 12 kB / 333.7 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004791/0.1235, allocations: 230.3 kB / 334 MB, free: 13.68 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00231/0.1258, allocations: 1.383 MB / 335.3 MB, free: 12.2 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003574/0.1262, allocations: 170.5 kB / 335.5 MB, free: 12.02 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.645e-05/0.1262, allocations: 4 kB / 335.5 MB, free: 12.02 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004109/0.1266, allocations: 159.5 kB / 335.7 MB, free: 11.84 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.743e-06/0.1266, allocations: 0 / 335.7 MB, free: 11.84 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001214/0.1279, allocations: 416.8 kB / 336.1 MB, free: 11.41 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.559e-05/0.128, allocations: 114.8 kB / 336.2 MB, free: 11.27 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000247/0.1282, allocations: 254.6 kB / 336.4 MB, free: 11.02 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.911e-05/0.1283, allocations: 33.7 kB / 336.5 MB, free: 10.98 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.1284, allocations: 203.9 kB / 336.7 MB, free: 10.77 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.578e-05/0.1285, allocations: 71.02 kB / 336.7 MB, free: 10.7 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.203e-05/0.1285, allocations: 4 kB / 336.7 MB, free: 10.7 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.1286, allocations: 347.1 kB / 337.1 MB, free: 10.35 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001483/0.1288, allocations: 76.62 kB / 337.1 MB, free: 10.28 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002186/0.129, allocations: 177.5 kB / 337.3 MB, free: 10.06 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001782/0.1292, allocations: 101.1 kB / 337.4 MB, free: 9.965 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1292, allocations: 0 / 337.4 MB, free: 9.965 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006559/0.1299, allocations: 340 kB / 337.8 MB, free: 9.625 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.1299, allocations: 4 kB / 337.8 MB, free: 9.621 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.1299, allocations: 4 kB / 337.8 MB, free: 9.617 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002824/0.1302, allocations: 60.97 kB / 337.8 MB, free: 9.555 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002588/0.1305, allocations: 63.91 kB / 337.9 MB, free: 9.492 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001392/0.1319, allocations: 1.416 MB / 339.3 MB, free: 7.941 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002628/0.1321, allocations: 47.67 kB / 339.3 MB, free: 7.895 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.821e-05/0.1322, allocations: 16.17 kB / 339.4 MB, free: 7.879 MB / 286.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 ($whenCondition1,switch1.off,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000227/0.1324, allocations: 153.7 kB / 339.5 MB, free: 7.719 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.243e-05/0.1325, allocations: 31.62 kB / 339.5 MB, free: 7.688 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.222e-05/0.1325, allocations: 34.17 kB / 339.6 MB, free: 7.656 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.1325, allocations: 4 kB / 339.6 MB, free: 7.652 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.1326, allocations: 3.938 kB / 339.6 MB, free: 7.648 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.742e-06/0.1326, allocations: 3.953 kB / 339.6 MB, free: 7.645 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003584/0.1329, allocations: 333.4 kB / 339.9 MB, free: 7.27 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1329, allocations: 4 kB / 339.9 MB, free: 7.266 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001879/0.1331, allocations: 39.92 kB / 340 MB, free: 7.227 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001878/0.1333, allocations: 52.81 kB / 340 MB, free: 7.172 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.97e-05/0.1334, allocations: 4 kB / 340 MB, free: 7.168 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001429/0.1348, allocations: 1.327 MB / 341.3 MB, free: 5.707 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.1348, allocations: 4.25 kB / 341.3 MB, free: 5.703 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007624/0.1356, allocations: 370.1 kB / 341.7 MB, free: 5.32 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001284/0.1357, allocations: 116.7 kB / 341.8 MB, free: 5.188 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.673e-05/0.1358, allocations: 4 kB / 341.8 MB, free: 5.184 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001697/0.136, allocations: 19.98 kB / 341.8 MB, free: 5.164 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001208/0.1361, allocations: 35.89 kB / 341.9 MB, free: 5.129 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.097e-05/0.1361, allocations: 8 kB / 341.9 MB, free: 5.121 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.00026/0.1364, allocations: 186 kB / 342.1 MB, free: 4.938 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1364, allocations: 0 / 342.1 MB, free: 4.938 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004235/0.1368, allocations: 83.84 kB / 342.1 MB, free: 4.855 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.000195/0.137, allocations: 111.2 kB / 342.3 MB, free: 4.738 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006843/0.1377, allocations: 322.8 kB / 342.6 MB, free: 4.41 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.1377, allocations: 0 / 342.6 MB, free: 4.41 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003188/0.1381, allocations: 202.6 kB / 342.8 MB, free: 4.199 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00025/0.1383, allocations: 24.56 kB / 342.8 MB, free: 4.176 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001682/0.14, allocations: 0.8383 MB / 343.6 MB, free: 3.312 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000517/0.1405, allocations: 0.7794 MB / 344.4 MB, free: 2.508 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001357/0.1407, allocations: 26.28 kB / 344.4 MB, free: 2.48 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.875e-05/0.1408, allocations: 19.44 kB / 344.5 MB, free: 2.461 MB / 286.1 MB Notification: Performance of SimCode: time 1.223e-06/0.1408, allocations: 4 kB / 344.5 MB, free: 2.457 MB / 286.1 MB Notification: Performance of Templates: time 0.006963/0.1477, allocations: 2.688 MB / 347.1 MB, free: 15.78 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) Environment - environmentSimulation: