Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007372/0.007372, allocations: 101.2 kB / 15.73 MB, free: 5.586 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.001308/0.001308, allocations: 190.4 kB / 16.67 MB, free: 5.523 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.52/1.52, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.001989/0.001989, allocations: 51.92 kB / 326.6 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1254, allocations: 46.61 MB / 373.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003917/0.1294, allocations: 2.823 MB / 376 MB, free: 1.727 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001369/0.1308, allocations: 0.7795 MB / 376.8 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001417/0.1309, allocations: 8 kB / 376.8 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001821/0.1311, allocations: 47.5 kB / 376.8 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001872/0.1313, allocations: 87.2 kB / 376.9 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000349/0.1317, allocations: 107.7 kB / 377 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000365/0.132, allocations: 370.3 kB / 377.4 MB, free: 336 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002222/0.1323, allocations: 123.2 kB / 377.5 MB, free: 208 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001459/0.1324, allocations: 139.5 kB / 377.6 MB, free: 68 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1995/0.3319, allocations: 151.5 kB / 377.8 MB, free: 9.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000137/0.3321, allocations: 29.75 kB / 377.8 MB, free: 9.98 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001042/0.3322, allocations: 31.47 kB / 377.8 MB, free: 9.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.494e-05/0.3323, allocations: 65.73 kB / 377.9 MB, free: 9.98 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002194/0.3325, allocations: 166.7 kB / 378.1 MB, free: 9.98 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005188/0.3331, allocations: 370.8 kB / 378.4 MB, free: 9.945 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3331, allocations: 2.812 kB / 378.4 MB, free: 9.945 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3331, allocations: 0 / 378.4 MB, free: 9.945 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.429e-05/0.3331, allocations: 0 / 378.4 MB, free: 9.945 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001078/0.3342, allocations: 0.6071 MB / 379 MB, free: 9.5 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.3342, allocations: 8.719 kB / 379 MB, free: 9.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000115/0.3344, allocations: 35.19 kB / 379.1 MB, free: 9.484 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004042/0.3348, allocations: 263.7 kB / 379.3 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.6e-05/0.3349, allocations: 73.95 kB / 379.4 MB, free: 9.203 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.627e-05/0.3349, allocations: 29.19 kB / 379.4 MB, free: 9.203 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005113/0.3354, allocations: 302 kB / 379.7 MB, free: 9.133 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.3355, allocations: 1.406 kB / 379.7 MB, free: 9.133 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.947e-05/0.3355, allocations: 15.52 kB / 379.8 MB, free: 9.133 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.3355, allocations: 8.188 kB / 379.8 MB, free: 9.133 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003267/0.3358, allocations: 188.3 kB / 379.9 MB, free: 9.129 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001632/0.3375, allocations: 1.122 MB / 381.1 MB, free: 8.516 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003596/0.3379, allocations: 153.4 kB / 381.2 MB, free: 8.492 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001558/0.338, allocations: 82.02 kB / 381.3 MB, free: 8.484 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.246e-05/0.338, allocations: 2.281 kB / 381.3 MB, free: 8.484 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002655/0.3383, allocations: 160.3 kB / 381.5 MB, free: 8.406 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.124e-06/0.3383, allocations: 0 / 381.5 MB, free: 8.406 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001044/0.3394, allocations: 382.7 kB / 381.8 MB, free: 8.262 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.135e-05/0.3394, allocations: 114.3 kB / 381.9 MB, free: 8.129 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002166/0.3397, allocations: 229.8 kB / 382.2 MB, free: 8.023 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.438e-05/0.3397, allocations: 32.39 kB / 382.2 MB, free: 7.992 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.914e-05/0.3398, allocations: 181 kB / 382.4 MB, free: 7.863 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.974e-05/0.3399, allocations: 67.69 kB / 382.4 MB, free: 7.828 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.577e-05/0.34, allocations: 59.55 kB / 382.5 MB, free: 7.809 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.022e-05/0.34, allocations: 337.4 kB / 382.8 MB, free: 7.492 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/0.3402, allocations: 66.42 kB / 382.9 MB, free: 7.492 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001495/0.3403, allocations: 146.6 kB / 383 MB, free: 7.406 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002437/0.3406, allocations: 190.6 kB / 383.2 MB, free: 7.336 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.3406, allocations: 0 / 383.2 MB, free: 7.336 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004287/0.341, allocations: 273 kB / 383.5 MB, free: 7.281 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.341, allocations: 10 kB / 383.5 MB, free: 7.277 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.3411, allocations: 3.625 kB / 383.5 MB, free: 7.277 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002694/0.3413, allocations: 55.08 kB / 383.6 MB, free: 7.258 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002129/0.3416, allocations: 48.66 kB / 383.6 MB, free: 7.258 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001185/0.3427, allocations: 1.578 MB / 385.2 MB, free: 5.688 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000246/0.343, allocations: 38.17 kB / 385.2 MB, free: 5.668 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.464e-05/0.343, allocations: 13.81 kB / 385.2 MB, free: 5.664 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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.0001551/0.3432, allocations: 148.7 kB / 385.4 MB, free: 5.527 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.041e-05/0.3432, allocations: 22.94 kB / 385.4 MB, free: 5.516 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.166e-05/0.3433, allocations: 30.3 kB / 385.4 MB, free: 5.492 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.3433, allocations: 1.781 kB / 385.4 MB, free: 5.492 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.3433, allocations: 1.781 kB / 385.4 MB, free: 5.492 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.582e-05/0.3434, allocations: 1.547 kB / 385.4 MB, free: 5.492 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003773/0.3437, allocations: 326.2 kB / 385.8 MB, free: 5.238 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.3437, allocations: 5.75 kB / 385.8 MB, free: 5.234 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001651/0.3439, allocations: 32.55 kB / 385.8 MB, free: 5.234 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000201/0.3441, allocations: 56.06 kB / 385.8 MB, free: 5.211 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/0.3442, allocations: 3.766 kB / 385.8 MB, free: 5.211 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009746/0.3451, allocations: 1.422 MB / 387.3 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3452, allocations: 0 / 387.3 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006387/0.3458, allocations: 330.5 kB / 387.6 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.781e-05/0.3459, allocations: 107.1 kB / 387.7 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.966e-05/0.3459, allocations: 14.38 kB / 387.7 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001644/0.3461, allocations: 18.11 kB / 387.7 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/0.3462, allocations: 28.73 kB / 387.8 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.485e-05/0.3463, allocations: 5.516 kB / 387.8 MB, free: 3.496 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001502/0.3464, allocations: 161.1 kB / 387.9 MB, free: 3.391 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3464, allocations: 4 kB / 387.9 MB, free: 3.387 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004044/0.3468, allocations: 88.08 kB / 388 MB, free: 3.363 MB / 318.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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,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): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001429/0.347, allocations: 104.4 kB / 388.1 MB, free: 3.273 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005298/0.3475, allocations: 291 kB / 388.4 MB, free: 3.109 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3475, allocations: 0 / 388.4 MB, free: 3.109 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002402/0.3478, allocations: 195.8 kB / 388.6 MB, free: 2.973 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002851/0.3481, allocations: 35.14 kB / 388.6 MB, free: 2.961 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001542/0.3496, allocations: 0.6484 MB / 389.3 MB, free: 2.594 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002682/0.3499, allocations: 0.7582 MB / 390 MB, free: 1.895 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001116/0.35, allocations: 23.28 kB / 390 MB, free: 1.883 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.694e-05/0.3501, allocations: 21.25 kB / 390.1 MB, free: 1.875 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3501, allocations: 3.75 kB / 390.1 MB, free: 1.875 MB / 318.1 MB Notification: Performance of Templates: time 0.007971/0.3581, allocations: 3.105 MB / 393.2 MB, free: 1.648 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1)