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.001141/0.001141, allocations: 115 kB / 16.63 MB, free: 6.812 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.001048/0.001048, allocations: 186 kB / 17.55 MB, free: 5.934 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.589/1.589, allocations: 205.1 MB / 223.4 MB, free: 12.43 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.001979/0.00198, allocations: 52.14 kB / 279.5 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1174, allocations: 46.63 MB / 326.1 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004524/0.122, allocations: 3.145 MB / 329.3 MB, free: 1.621 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0013/0.1233, allocations: 0.7681 MB / 330 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001493/0.1235, allocations: 8 kB / 330.1 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001848/0.1237, allocations: 43.67 kB / 330.1 MB, free: 0.793 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001977/0.1239, allocations: 87.25 kB / 330.2 MB, free: 0.707 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003715/0.1243, allocations: 95.91 kB / 330.3 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000366/0.1247, allocations: 414.1 kB / 330.7 MB, free: 212 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002502/0.1249, allocations: 139.7 kB / 330.8 MB, free: 72 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002056/0.1251, allocations: 159.4 kB / 331 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001935/0.1253, allocations: 175.2 kB / 331.1 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.961e-05/0.1254, allocations: 36 kB / 331.2 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.208e-05/0.1255, allocations: 32 kB / 331.2 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.581e-05/0.1255, allocations: 79.75 kB / 331.3 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001606/0.1257, allocations: 187.1 kB / 331.5 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003594/0.1261, allocations: 418.8 kB / 331.9 MB, free: 15 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.1261, allocations: 4 kB / 331.9 MB, free: 15 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1261, allocations: 0 / 331.9 MB, free: 15 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.255e-06/0.1261, allocations: 4 kB / 331.9 MB, free: 15 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.001056/0.1272, allocations: 0.647 MB / 332.5 MB, free: 14.3 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.1272, allocations: 12.03 kB / 332.5 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.624e-05/0.1273, allocations: 36.56 kB / 332.6 MB, free: 14.25 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003251/0.1277, allocations: 285.1 kB / 332.9 MB, free: 13.93 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.981e-05/0.1278, allocations: 80.56 kB / 332.9 MB, free: 13.84 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.374e-05/0.1278, allocations: 36.36 kB / 333 MB, free: 13.81 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005596/0.1284, allocations: 338.9 kB / 333.3 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.1284, allocations: 4 kB / 333.3 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.683e-05/0.1285, allocations: 15.94 kB / 333.3 MB, free: 13.44 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.1285, allocations: 8 kB / 333.3 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004042/0.1289, allocations: 226.5 kB / 333.6 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001856/0.1308, allocations: 1.368 MB / 334.9 MB, free: 11.74 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003735/0.1312, allocations: 166.5 kB / 335.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001643/0.1313, allocations: 88.77 kB / 335.2 MB, free: 11.48 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.45e-05/0.1314, allocations: 0 / 335.2 MB, free: 11.48 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000376/0.1317, allocations: 157.9 kB / 335.3 MB, free: 11.3 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.302e-06/0.1318, allocations: 0 / 335.3 MB, free: 11.3 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001088/0.1328, allocations: 411.1 kB / 335.7 MB, free: 10.88 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.716e-05/0.1329, allocations: 110.8 kB / 335.8 MB, free: 10.74 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002434/0.1332, allocations: 258.6 kB / 336.1 MB, free: 10.48 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.928e-05/0.1332, allocations: 33.7 kB / 336.1 MB, free: 10.44 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001282/0.1334, allocations: 199.9 kB / 336.3 MB, free: 10.24 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.781e-05/0.1334, allocations: 75 kB / 336.4 MB, free: 10.17 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.357e-05/0.1335, allocations: 58.02 kB / 336.4 MB, free: 10.11 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.1337, allocations: 342.8 kB / 336.8 MB, free: 9.762 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001503/0.1338, allocations: 72.62 kB / 336.9 MB, free: 9.691 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002057/0.134, allocations: 189.4 kB / 337 MB, free: 9.465 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003215/0.1344, allocations: 235.6 kB / 337.3 MB, free: 9.199 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.1344, allocations: 0 / 337.3 MB, free: 9.199 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006484/0.135, allocations: 343.4 kB / 337.6 MB, free: 8.855 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.1351, allocations: 4 kB / 337.6 MB, free: 8.852 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.1351, allocations: 4 kB / 337.6 MB, free: 8.848 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002778/0.1354, allocations: 65.09 kB / 337.7 MB, free: 8.781 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002448/0.1356, allocations: 59.91 kB / 337.7 MB, free: 8.723 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00135/0.137, allocations: 1.572 MB / 339.3 MB, free: 7.012 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002515/0.1372, allocations: 51.77 kB / 339.4 MB, free: 6.961 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.435e-05/0.1373, allocations: 15.98 kB / 339.4 MB, free: 6.945 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 (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.0001637/0.1374, allocations: 150.5 kB / 339.5 MB, free: 6.789 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.871e-05/0.1375, allocations: 23.72 kB / 339.5 MB, free: 6.766 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.855e-05/0.1375, allocations: 38.11 kB / 339.6 MB, free: 6.734 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.1375, allocations: 0 / 339.6 MB, free: 6.734 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.1376, allocations: 0 / 339.6 MB, free: 6.734 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.1376, allocations: 4 kB / 339.6 MB, free: 6.73 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003209/0.1379, allocations: 337.4 kB / 339.9 MB, free: 6.352 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.1379, allocations: 0 / 339.9 MB, free: 6.352 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000185/0.1381, allocations: 35.92 kB / 339.9 MB, free: 6.316 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001754/0.1383, allocations: 56.75 kB / 340 MB, free: 6.258 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.975e-05/0.1383, allocations: 15.94 kB / 340 MB, free: 6.242 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001211/0.1395, allocations: 1.414 MB / 341.4 MB, free: 4.684 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1395, allocations: 0 / 341.4 MB, free: 4.684 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006909/0.1402, allocations: 353.5 kB / 341.8 MB, free: 4.316 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001151/0.1404, allocations: 120.6 kB / 341.9 MB, free: 4.18 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.783e-05/0.1404, allocations: 7.938 kB / 341.9 MB, free: 4.172 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001656/0.1406, allocations: 15.98 kB / 341.9 MB, free: 4.156 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.594e-05/0.1407, allocations: 39.88 kB / 342 MB, free: 4.117 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.447e-05/0.1407, allocations: 4 kB / 342 MB, free: 4.113 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001928/0.1409, allocations: 190 kB / 342.1 MB, free: 3.926 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1409, allocations: 4.062 kB / 342.2 MB, free: 3.922 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000394/0.1413, allocations: 83.84 kB / 342.2 MB, free: 3.84 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 (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.0001657/0.1415, allocations: 99.25 kB / 342.3 MB, free: 3.734 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006498/0.1421, allocations: 322.9 kB / 342.6 MB, free: 3.406 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.1422, allocations: 128 / 342.6 MB, free: 3.406 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002975/0.1425, allocations: 206.5 kB / 342.8 MB, free: 3.191 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002838/0.1428, allocations: 28.55 kB / 342.9 MB, free: 3.164 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001662/0.1444, allocations: 0.7933 MB / 343.7 MB, free: 2.344 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003638/0.1448, allocations: 0.7713 MB / 344.4 MB, free: 1.547 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001292/0.1449, allocations: 26.28 kB / 344.5 MB, free: 1.52 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.129e-05/0.145, allocations: 27.44 kB / 344.5 MB, free: 1.492 MB / 286.1 MB Notification: Performance of SimCode: time 3.6e-07/0.145, allocations: 0 / 344.5 MB, free: 1.492 MB / 286.1 MB Notification: Performance of Templates: time 0.006959/0.152, allocations: 2.99 MB / 347.5 MB, free: 14.5 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (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)