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.001808/0.001808, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002115/0.002115, allocations: 197.8 kB / 16.53 MB, free: 6.664 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.496/1.496, allocations: 205.1 MB / 222.4 MB, free: 4.602 MB / 174.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.001195/0.001195, allocations: 51.92 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.33/0.3312, allocations: 46.64 MB / 325.3 MB, free: 1.836 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004207/0.3355, allocations: 2.823 MB / 328.1 MB, free: 15.59 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001814/0.3373, allocations: 0.7636 MB / 328.9 MB, free: 14.97 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000196/0.3375, allocations: 8.562 kB / 328.9 MB, free: 14.96 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000215/0.3378, allocations: 52.97 kB / 329 MB, free: 14.92 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002297/0.338, allocations: 89.06 kB / 329 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004801/0.3385, allocations: 105.8 kB / 329.2 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004577/0.339, allocations: 377.4 kB / 329.5 MB, free: 14.53 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002645/0.3393, allocations: 107.5 kB / 329.6 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001865/0.3395, allocations: 143.1 kB / 329.8 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002314/0.3397, allocations: 154.3 kB / 329.9 MB, free: 14.29 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.371e-05/0.3398, allocations: 31.25 kB / 329.9 MB, free: 14.29 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.54e-05/0.3399, allocations: 30.53 kB / 330 MB, free: 14.29 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.915e-05/0.34, allocations: 76.55 kB / 330.1 MB, free: 14.22 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001889/0.3401, allocations: 157.7 kB / 330.2 MB, free: 14.12 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004395/0.3406, allocations: 358 kB / 330.6 MB, free: 13.86 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.3406, allocations: 1.188 kB / 330.6 MB, free: 13.86 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.3406, allocations: 0 / 330.6 MB, free: 13.86 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.3406, allocations: 0 / 330.6 MB, free: 13.86 MB / 270.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.001183/0.3418, allocations: 0.61 MB / 331.2 MB, free: 13.31 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.3419, allocations: 9.781 kB / 331.2 MB, free: 13.31 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001011/0.342, allocations: 38.31 kB / 331.2 MB, free: 13.29 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003513/0.3423, allocations: 261.2 kB / 331.5 MB, free: 13.02 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000106/0.3425, allocations: 85.64 kB / 331.6 MB, free: 12.94 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.66e-05/0.3425, allocations: 27.47 kB / 331.6 MB, free: 12.93 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005179/0.3431, allocations: 302.4 kB / 331.9 MB, free: 12.73 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.3431, allocations: 0 / 331.9 MB, free: 12.73 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.601e-05/0.3431, allocations: 19.14 kB / 331.9 MB, free: 12.72 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/0.3432, allocations: 7.625 kB / 331.9 MB, free: 12.72 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003492/0.3435, allocations: 186.5 kB / 332.1 MB, free: 12.64 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001783/0.3453, allocations: 1.14 MB / 333.2 MB, free: 11.64 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000313/0.3456, allocations: 148.8 kB / 333.4 MB, free: 11.55 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001709/0.3458, allocations: 80.23 kB / 333.4 MB, free: 11.51 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.077e-05/0.3458, allocations: 2.406 kB / 333.4 MB, free: 11.51 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003845/0.3462, allocations: 162.3 kB / 333.6 MB, free: 11.38 MB / 270.1 MB Notification: Performance of pre-optimization done (n=21): time 1.503e-06/0.3462, allocations: 0 / 333.6 MB, free: 11.38 MB / 270.1 MB Notification: Performance of matching and sorting (n=21): time 0.001135/0.3474, allocations: 382.5 kB / 334 MB, free: 10.98 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.811e-05/0.3475, allocations: 110.8 kB / 334.1 MB, free: 10.85 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002457/0.3477, allocations: 229 kB / 334.3 MB, free: 10.62 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.544e-05/0.3478, allocations: 29.7 kB / 334.3 MB, free: 10.58 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001365/0.3479, allocations: 184.1 kB / 334.5 MB, free: 10.4 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.049e-05/0.348, allocations: 63.09 kB / 334.6 MB, free: 10.34 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.557e-05/0.3481, allocations: 57.61 kB / 334.6 MB, free: 10.27 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.3482, allocations: 346.8 kB / 335 MB, free: 9.926 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001186/0.3484, allocations: 63.97 kB / 335 MB, free: 9.863 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001735/0.3485, allocations: 141.8 kB / 335.2 MB, free: 9.695 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002624/0.3488, allocations: 192.2 kB / 335.4 MB, free: 9.484 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.3488, allocations: 0 / 335.4 MB, free: 9.484 MB / 270.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004357/0.3493, allocations: 275.7 kB / 335.6 MB, free: 9.207 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.3493, allocations: 4 kB / 335.6 MB, free: 9.203 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.3493, allocations: 4 kB / 335.6 MB, free: 9.199 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002968/0.3496, allocations: 64.97 kB / 335.7 MB, free: 9.133 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002306/0.3499, allocations: 47.92 kB / 335.8 MB, free: 9.086 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001456/0.3513, allocations: 1.572 MB / 337.3 MB, free: 7.379 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000267/0.3516, allocations: 31.73 kB / 337.4 MB, free: 7.348 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.686e-05/0.3516, allocations: 12.09 kB / 337.4 MB, free: 7.336 MB / 270.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.0001708/0.3518, allocations: 153.7 kB / 337.5 MB, free: 7.176 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.687e-05/0.3519, allocations: 19.81 kB / 337.5 MB, free: 7.156 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.355e-05/0.3519, allocations: 30.17 kB / 337.6 MB, free: 7.129 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.3519, allocations: 4 kB / 337.6 MB, free: 7.125 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.3519, allocations: 0 / 337.6 MB, free: 7.125 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.352, allocations: 0 / 337.6 MB, free: 7.125 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003564/0.3523, allocations: 325.2 kB / 337.9 MB, free: 6.758 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.3523, allocations: 0 / 337.9 MB, free: 6.758 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001635/0.3525, allocations: 43.91 kB / 337.9 MB, free: 6.715 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001821/0.3527, allocations: 44.83 kB / 338 MB, free: 6.668 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.987e-05/0.3527, allocations: 7.984 kB / 338 MB, free: 6.66 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001272/0.354, allocations: 1.426 MB / 339.4 MB, free: 5.094 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.354, allocations: 0 / 339.4 MB, free: 5.094 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006178/0.3546, allocations: 318.3 kB / 339.7 MB, free: 4.762 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001248/0.3548, allocations: 120.7 kB / 339.8 MB, free: 4.625 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.599e-05/0.3548, allocations: 4 kB / 339.8 MB, free: 4.621 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001628/0.355, allocations: 20.11 kB / 339.9 MB, free: 4.602 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.691e-05/0.3551, allocations: 31.95 kB / 339.9 MB, free: 4.57 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.49e-05/0.3551, allocations: 11.98 kB / 339.9 MB, free: 4.559 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001429/0.3553, allocations: 156.5 kB / 340.1 MB, free: 4.406 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3553, allocations: 3.938 kB / 340.1 MB, free: 4.402 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003873/0.3557, allocations: 75.84 kB / 340.1 MB, free: 4.328 MB / 270.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.0001856/0.3558, allocations: 115.4 kB / 340.2 MB, free: 4.207 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0006319/0.3565, allocations: 298.4 kB / 340.5 MB, free: 3.902 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.3565, allocations: 0 / 340.5 MB, free: 3.902 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002878/0.3568, allocations: 198.5 kB / 340.7 MB, free: 3.695 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000334/0.3571, allocations: 40.78 kB / 340.8 MB, free: 3.652 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001621/0.3588, allocations: 0.6551 MB / 341.4 MB, free: 2.969 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003088/0.3591, allocations: 0.7558 MB / 342.2 MB, free: 2.188 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001096/0.3592, allocations: 26.28 kB / 342.2 MB, free: 2.16 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.984e-05/0.3593, allocations: 19.44 kB / 342.2 MB, free: 2.145 MB / 270.1 MB Notification: Performance of SimCode: time 2.675e-06/0.3593, allocations: 3.938 kB / 342.2 MB, free: 2.141 MB / 270.1 MB Notification: Performance of Templates: time 0.007162/0.3664, allocations: 3.055 MB / 345.3 MB, free: 15.08 MB / 286.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)