Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001103/0.001103, allocations: 110.9 kB / 17.06 MB, free: 5.977 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.001339/0.001339, allocations: 200 kB / 18.01 MB, free: 5.059 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.443/1.443, allocations: 205.1 MB / 223.9 MB, free: 12.22 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.001152/0.001152, allocations: 55.92 kB / 327.9 MB, free: 3.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1032, allocations: 46.61 MB / 374.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003863/0.1071, allocations: 2.819 MB / 377.3 MB, free: 1.719 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001334/0.1085, allocations: 0.7795 MB / 378.1 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001413/0.1086, allocations: 11.94 kB / 378.1 MB, free: 0.918 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001732/0.1088, allocations: 51.5 kB / 378.1 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001767/0.109, allocations: 87.19 kB / 378.2 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000351/0.1094, allocations: 99.77 kB / 378.3 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004433/0.1098, allocations: 378.2 kB / 378.7 MB, free: 320 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002841/0.1101, allocations: 119.3 kB / 378.8 MB, free: 196 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001386/0.1102, allocations: 135.5 kB / 379 MB, free: 60 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2264/0.3366, allocations: 149.8 kB / 379.1 MB, free: 9.977 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000146/0.3368, allocations: 30.72 kB / 379.1 MB, free: 9.977 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001362/0.337, allocations: 29.5 kB / 379.2 MB, free: 9.977 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.152e-05/0.3371, allocations: 70.44 kB / 379.2 MB, free: 9.977 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002112/0.3373, allocations: 162.3 kB / 379.4 MB, free: 9.977 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005764/0.3379, allocations: 368.3 kB / 379.7 MB, free: 9.934 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.645e-06/0.3379, allocations: 3.875 kB / 379.7 MB, free: 9.934 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.737e-06/0.3379, allocations: 2.156 kB / 379.7 MB, free: 9.934 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.628e-06/0.3379, allocations: 5 kB / 379.8 MB, free: 9.934 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.00109/0.339, allocations: 0.6023 MB / 380.4 MB, free: 9.488 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.3391, allocations: 10.28 kB / 380.4 MB, free: 9.488 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.826e-05/0.3391, allocations: 33.97 kB / 380.4 MB, free: 9.473 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004098/0.3396, allocations: 259.6 kB / 380.7 MB, free: 9.254 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.192e-05/0.3396, allocations: 80.67 kB / 380.7 MB, free: 9.191 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.707e-05/0.3397, allocations: 29.22 kB / 380.8 MB, free: 9.191 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005215/0.3402, allocations: 301.7 kB / 381.1 MB, free: 9.121 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.3403, allocations: 1.375 kB / 381.1 MB, free: 9.121 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.235e-05/0.3403, allocations: 12.75 kB / 381.1 MB, free: 9.121 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.3403, allocations: 7.578 kB / 381.1 MB, free: 9.121 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003588/0.3407, allocations: 190.3 kB / 381.3 MB, free: 9.117 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001943/0.3426, allocations: 1.123 MB / 382.4 MB, free: 8.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003931/0.343, allocations: 160.1 kB / 382.5 MB, free: 8.477 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000157/0.3432, allocations: 77.78 kB / 382.6 MB, free: 8.469 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.36e-05/0.3432, allocations: 2.844 kB / 382.6 MB, free: 8.469 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002537/0.3435, allocations: 166.9 kB / 382.8 MB, free: 8.387 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.343e-06/0.3435, allocations: 0 / 382.8 MB, free: 8.387 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001005/0.3445, allocations: 378.1 kB / 383.2 MB, free: 8.242 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.024e-05/0.3446, allocations: 115.6 kB / 383.3 MB, free: 8.113 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000228/0.3448, allocations: 224.8 kB / 383.5 MB, free: 8.008 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.929e-05/0.3448, allocations: 30.7 kB / 383.5 MB, free: 7.977 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001115/0.3449, allocations: 185.9 kB / 383.7 MB, free: 7.848 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.49e-05/0.345, allocations: 59.16 kB / 383.8 MB, free: 7.812 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.668e-05/0.3451, allocations: 62.88 kB / 383.8 MB, free: 7.793 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.91e-05/0.3452, allocations: 334.2 kB / 384.1 MB, free: 7.477 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.3453, allocations: 65.17 kB / 384.2 MB, free: 7.477 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001633/0.3455, allocations: 147.9 kB / 384.3 MB, free: 7.391 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002561/0.3457, allocations: 189.5 kB / 384.5 MB, free: 7.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.3457, allocations: 0.9375 kB / 384.5 MB, free: 7.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004474/0.3462, allocations: 275.8 kB / 384.8 MB, free: 7.262 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.3462, allocations: 6.812 kB / 384.8 MB, free: 7.262 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.3462, allocations: 2.812 kB / 384.8 MB, free: 7.262 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000301/0.3465, allocations: 53.7 kB / 384.9 MB, free: 7.254 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002314/0.3468, allocations: 51.41 kB / 384.9 MB, free: 7.254 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001125/0.3479, allocations: 1.579 MB / 386.5 MB, free: 5.688 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002138/0.3481, allocations: 39.98 kB / 386.5 MB, free: 5.668 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.184e-05/0.3482, allocations: 12.8 kB / 386.5 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.000126/0.3483, allocations: 148.9 kB / 386.7 MB, free: 5.527 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.437e-05/0.3484, allocations: 26.53 kB / 386.7 MB, free: 5.512 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.55e-05/0.3484, allocations: 30.81 kB / 386.7 MB, free: 5.488 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.3484, allocations: 2 kB / 386.7 MB, free: 5.488 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.3484, allocations: 1 kB / 386.8 MB, free: 5.488 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.3484, allocations: 1.266 kB / 386.8 MB, free: 5.488 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003123/0.3487, allocations: 324 kB / 387.1 MB, free: 5.238 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.3488, allocations: 3.938 kB / 387.1 MB, free: 5.234 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001802/0.3489, allocations: 35.67 kB / 387.1 MB, free: 5.234 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001845/0.3491, allocations: 54.73 kB / 387.2 MB, free: 5.211 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.992e-05/0.3492, allocations: 2.312 kB / 387.2 MB, free: 5.211 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008833/0.3501, allocations: 1.424 MB / 388.6 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-06/0.3501, allocations: 3.938 kB / 388.6 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006144/0.3507, allocations: 326.3 kB / 388.9 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.725e-05/0.3508, allocations: 108.2 kB / 389 MB, free: 3.512 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.528e-05/0.3508, allocations: 11.38 kB / 389 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001577/0.351, allocations: 16.73 kB / 389 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.582e-05/0.3511, allocations: 31.7 kB / 389.1 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.762e-05/0.3511, allocations: 5.531 kB / 389.1 MB, free: 3.496 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001447/0.3513, allocations: 170.3 kB / 389.2 MB, free: 3.383 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3513, allocations: 1.219 kB / 389.2 MB, free: 3.383 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003614/0.3516, allocations: 81.5 kB / 389.3 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.0001239/0.3518, allocations: 103.8 kB / 389.4 MB, free: 3.273 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005206/0.3523, allocations: 291 kB / 389.7 MB, free: 3.109 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3523, allocations: 448 / 389.7 MB, free: 3.109 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002483/0.3526, allocations: 203.3 kB / 389.9 MB, free: 2.969 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002784/0.3528, allocations: 33.59 kB / 389.9 MB, free: 2.961 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00167/0.3545, allocations: 0.6489 MB / 390.6 MB, free: 2.594 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002797/0.3548, allocations: 0.7582 MB / 391.4 MB, free: 1.895 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001007/0.3549, allocations: 24.55 kB / 391.4 MB, free: 1.883 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.281e-05/0.355, allocations: 20.47 kB / 391.4 MB, free: 1.875 MB / 318.1 MB Notification: Performance of SimCode: time 7.52e-07/0.355, allocations: 0 / 391.4 MB, free: 1.875 MB / 318.1 MB Notification: Performance of Templates: time 0.008883/0.3639, allocations: 3.185 MB / 394.6 MB, free: 1.621 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1)