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.00114/0.00114, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001378/0.001378, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.587/1.587, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.0005078/0.0005078, allocations: 8 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2994/0.2999, allocations: 47.59 MB / 326.5 MB, free: 1.266 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003587/0.3036, allocations: 2.397 MB / 328.9 MB, free: 15.37 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001631/0.3053, allocations: 0.7481 MB / 329.6 MB, free: 14.76 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001523/0.3054, allocations: 4.75 kB / 329.6 MB, free: 14.76 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001344/0.3056, allocations: 36.28 kB / 329.7 MB, free: 14.73 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001748/0.3058, allocations: 70.02 kB / 329.7 MB, free: 14.67 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003171/0.3061, allocations: 81.11 kB / 329.8 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003593/0.3065, allocations: 340.4 kB / 330.1 MB, free: 14.4 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002012/0.3067, allocations: 90.83 kB / 330.2 MB, free: 14.35 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001424/0.3068, allocations: 116.5 kB / 330.3 MB, free: 14.29 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001891/0.307, allocations: 125.6 kB / 330.5 MB, free: 14.21 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.937e-05/0.3071, allocations: 16.03 kB / 330.5 MB, free: 14.21 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.71e-05/0.3071, allocations: 17.31 kB / 330.5 MB, free: 14.21 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.709e-05/0.3072, allocations: 56.98 kB / 330.6 MB, free: 14.16 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.969e-05/0.3073, allocations: 81.14 kB / 330.6 MB, free: 14.11 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003207/0.3076, allocations: 262.5 kB / 330.9 MB, free: 13.91 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.3076, allocations: 1.188 kB / 330.9 MB, free: 13.91 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3076, allocations: 0 / 330.9 MB, free: 13.91 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.3077, allocations: 0 / 330.9 MB, free: 13.91 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.001038/0.3087, allocations: 0.5644 MB / 331.5 MB, free: 13.41 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/0.3088, allocations: 8.656 kB / 331.5 MB, free: 13.41 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001097/0.3089, allocations: 33.31 kB / 331.5 MB, free: 13.39 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004603/0.3093, allocations: 251.3 kB / 331.7 MB, free: 13.13 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001115/0.3095, allocations: 85.91 kB / 331.8 MB, free: 13.05 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.194e-05/0.3095, allocations: 27.47 kB / 331.9 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006172/0.3102, allocations: 298.6 kB / 332.1 MB, free: 12.84 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.3102, allocations: 1.188 kB / 332.1 MB, free: 12.84 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.939e-05/0.3102, allocations: 11.09 kB / 332.2 MB, free: 12.84 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.388e-05/0.3103, allocations: 7.094 kB / 332.2 MB, free: 12.84 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003879/0.3107, allocations: 191.2 kB / 332.4 MB, free: 12.74 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001794/0.3125, allocations: 1.145 MB / 333.5 MB, free: 11.75 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003228/0.3128, allocations: 156.7 kB / 333.7 MB, free: 11.66 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001515/0.313, allocations: 73.88 kB / 333.7 MB, free: 11.62 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/0.313, allocations: 10.48 kB / 333.7 MB, free: 11.62 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003268/0.3133, allocations: 152.9 kB / 333.9 MB, free: 11.49 MB / 270.1 MB Notification: Performance of pre-optimization done (n=21): time 2.194e-06/0.3133, allocations: 0 / 333.9 MB, free: 11.49 MB / 270.1 MB Notification: Performance of matching and sorting (n=21): time 0.001087/0.3144, allocations: 404.7 kB / 334.3 MB, free: 11.23 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.72e-05/0.3145, allocations: 105.9 kB / 334.4 MB, free: 11.1 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002727/0.3148, allocations: 226.5 kB / 334.6 MB, free: 10.93 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.857e-05/0.3149, allocations: 34.92 kB / 334.6 MB, free: 10.89 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001343/0.315, allocations: 184.5 kB / 334.8 MB, free: 10.73 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.511e-05/0.3151, allocations: 65.22 kB / 334.9 MB, free: 10.66 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.306e-05/0.3151, allocations: 4 kB / 334.9 MB, free: 10.66 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.3153, allocations: 334.8 kB / 335.2 MB, free: 10.32 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001321/0.3154, allocations: 71.91 kB / 335.3 MB, free: 10.25 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002315/0.3156, allocations: 145.8 kB / 335.4 MB, free: 10.08 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000155/0.3158, allocations: 77.86 kB / 335.5 MB, free: 10.01 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.3158, allocations: 0 / 335.5 MB, free: 10.01 MB / 270.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004491/0.3163, allocations: 271.9 kB / 335.8 MB, free: 9.734 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.3163, allocations: 15.94 kB / 335.8 MB, free: 9.719 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.3163, allocations: 0 / 335.8 MB, free: 9.719 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002881/0.3166, allocations: 57.03 kB / 335.8 MB, free: 9.66 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002178/0.3168, allocations: 55.92 kB / 335.9 MB, free: 9.605 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001624/0.3185, allocations: 1.397 MB / 337.3 MB, free: 8.078 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003218/0.3188, allocations: 35.73 kB / 337.3 MB, free: 8.043 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.604e-05/0.3189, allocations: 16.03 kB / 337.3 MB, free: 8.027 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,$whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$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 (34): * Single equations (assignments): 33 * 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.0002615/0.3191, allocations: 157.7 kB / 337.5 MB, free: 7.863 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.092e-05/0.3192, allocations: 19.81 kB / 337.5 MB, free: 7.844 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.096e-05/0.3192, allocations: 30.17 kB / 337.5 MB, free: 7.816 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.3193, allocations: 4 kB / 337.5 MB, free: 7.812 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.3193, allocations: 0 / 337.5 MB, free: 7.812 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.3193, allocations: 3.984 kB / 337.5 MB, free: 7.809 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004075/0.3197, allocations: 325.3 kB / 337.9 MB, free: 7.441 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.3197, allocations: 0 / 337.9 MB, free: 7.441 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001722/0.3199, allocations: 39.92 kB / 337.9 MB, free: 7.402 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001879/0.3201, allocations: 52.81 kB / 338 MB, free: 7.348 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.787e-05/0.3201, allocations: 4 kB / 338 MB, free: 7.344 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00116/0.3213, allocations: 1.327 MB / 339.3 MB, free: 5.879 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3213, allocations: 160 / 339.3 MB, free: 5.879 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006435/0.3219, allocations: 334.3 kB / 339.6 MB, free: 5.531 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001088/0.3221, allocations: 112.8 kB / 339.7 MB, free: 5.402 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.202e-05/0.3221, allocations: 0 / 339.7 MB, free: 5.402 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001588/0.3223, allocations: 24.05 kB / 339.7 MB, free: 5.379 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.158e-05/0.3224, allocations: 35.94 kB / 339.8 MB, free: 5.344 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.99e-05/0.3224, allocations: 11.98 kB / 339.8 MB, free: 5.332 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001498/0.3225, allocations: 156.5 kB / 339.9 MB, free: 5.176 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3225, allocations: 3.938 kB / 340 MB, free: 5.172 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003895/0.3229, allocations: 75.84 kB / 340 MB, free: 5.098 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 (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.0001487/0.3231, allocations: 107.2 kB / 340.1 MB, free: 4.984 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0005758/0.3237, allocations: 286.6 kB / 340.4 MB, free: 4.691 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3237, allocations: 0 / 340.4 MB, free: 4.691 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002664/0.324, allocations: 194.6 kB / 340.6 MB, free: 4.488 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003437/0.3243, allocations: 44.75 kB / 340.6 MB, free: 4.445 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00174/0.3261, allocations: 0.8182 MB / 341.5 MB, free: 3.602 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004512/0.3265, allocations: 0.7599 MB / 342.2 MB, free: 2.816 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001173/0.3267, allocations: 26.28 kB / 342.2 MB, free: 2.793 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.253e-05/0.3267, allocations: 19.44 kB / 342.3 MB, free: 2.773 MB / 270.1 MB Notification: Performance of SimCode: time 8.31e-07/0.3267, allocations: 0 / 342.3 MB, free: 2.773 MB / 270.1 MB Notification: Performance of Templates: time 0.00817/0.3349, allocations: 2.649 MB / 344.9 MB, free: 128 kB / 270.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)