Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection.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.OvervoltageProtection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection") translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009647/0.0009646, allocations: 97.8 kB / 15.36 MB, free: 0.7344 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.007514/0.007514, allocations: 170.2 kB / 16.27 MB, free: 6.652 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.548/1.548, allocations: 205.4 MB / 222.5 MB, free: 5.797 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.000478/0.000478, allocations: 12 kB / 279.4 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2484/0.2489, allocations: 47.59 MB / 327 MB, free: 1.387 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.002843/0.2518, allocations: 2.347 MB / 329.4 MB, free: 15.52 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00134/0.2531, allocations: 0.6921 MB / 330.1 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001592/0.2533, allocations: 3.531 kB / 330.1 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001438/0.2535, allocations: 39.69 kB / 330.1 MB, free: 14.92 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001538/0.2536, allocations: 63.97 kB / 330.2 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003594/0.254, allocations: 90.05 kB / 330.3 MB, free: 14.79 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005371/0.2545, allocations: 340.9 kB / 330.6 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002459/0.2548, allocations: 76.11 kB / 330.7 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002404/0.255, allocations: 114.3 kB / 330.8 MB, free: 14.49 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002116/0.2553, allocations: 145.3 kB / 330.9 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.386e-05/0.2553, allocations: 19.91 kB / 330.9 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.249e-05/0.2554, allocations: 20.09 kB / 331 MB, free: 14.38 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.042e-05/0.2555, allocations: 50.47 kB / 331 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001824/0.2557, allocations: 150.9 kB / 331.2 MB, free: 14.23 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003286/0.256, allocations: 322.4 kB / 331.5 MB, free: 13.99 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.256, allocations: 0 / 331.5 MB, free: 13.99 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.276e-06/0.256, allocations: 0 / 331.5 MB, free: 13.99 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.593e-06/0.256, allocations: 0 / 331.5 MB, free: 13.99 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001454/0.2575, allocations: 0.6136 MB / 332.1 MB, free: 13.48 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.2575, allocations: 9.281 kB / 332.1 MB, free: 13.48 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.958e-05/0.2576, allocations: 26.94 kB / 332.1 MB, free: 13.47 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003405/0.258, allocations: 261.7 kB / 332.4 MB, free: 13.2 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.385e-05/0.258, allocations: 15.91 kB / 332.4 MB, free: 13.19 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.445e-05/0.2581, allocations: 28.92 kB / 332.4 MB, free: 13.17 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007177/0.2588, allocations: 311.1 kB / 332.7 MB, free: 12.98 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.2588, allocations: 0 / 332.7 MB, free: 12.98 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.276e-05/0.2589, allocations: 6.844 kB / 332.7 MB, free: 12.97 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.2589, allocations: 4.406 kB / 332.7 MB, free: 12.97 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008488/0.2597, allocations: 290.1 kB / 333 MB, free: 12.86 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002008/0.2617, allocations: 1.073 MB / 334.1 MB, free: 11.93 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001946/0.2637, allocations: 490.9 kB / 334.6 MB, free: 11.66 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003997/0.2641, allocations: 152.8 kB / 334.7 MB, free: 11.51 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.468e-05/0.2642, allocations: 7.984 kB / 334.7 MB, free: 11.5 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.751e-05/0.2642, allocations: 30.56 kB / 334.8 MB, free: 11.46 MB / 270.1 MB Notification: Performance of pre-optimization done (n=14): time 1.573e-06/0.2642, allocations: 0 / 334.8 MB, free: 11.46 MB / 270.1 MB Notification: Performance of matching and sorting (n=14): time 0.00491/0.2691, allocations: 1.135 MB / 335.9 MB, free: 10.3 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.126e-05/0.2692, allocations: 55.41 kB / 336 MB, free: 10.23 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002459/0.2694, allocations: 216.2 kB / 336.2 MB, free: 10 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.813e-05/0.2695, allocations: 29.7 kB / 336.2 MB, free: 9.969 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/0.2696, allocations: 156.2 kB / 336.3 MB, free: 9.812 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.829e-05/0.2696, allocations: 47.2 kB / 336.4 MB, free: 9.766 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.852e-05/0.2697, allocations: 17.72 kB / 336.4 MB, free: 9.742 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.2698, allocations: 338.8 kB / 336.7 MB, free: 9.402 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003434/0.2702, allocations: 111.9 kB / 336.8 MB, free: 9.293 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000346/0.2705, allocations: 137.6 kB / 337 MB, free: 9.152 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006635/0.2712, allocations: 240.4 kB / 337.2 MB, free: 8.914 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.2712, allocations: 4 kB / 337.2 MB, free: 8.91 MB / 270.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002895/0.2741, allocations: 0.6969 MB / 337.9 MB, free: 8.203 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.2742, allocations: 8 kB / 337.9 MB, free: 8.195 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.2742, allocations: 3.938 kB / 337.9 MB, free: 8.191 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007456/0.2749, allocations: 232.7 kB / 338.2 MB, free: 7.961 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001751/0.2751, allocations: 43.91 kB / 338.2 MB, free: 7.918 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006561/0.2817, allocations: 2.603 MB / 340.8 MB, free: 5.18 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003271/0.282, allocations: 39.86 kB / 340.8 MB, free: 5.141 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.972e-05/0.2821, allocations: 7.984 kB / 340.9 MB, free: 5.133 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001754/0.2823, allocations: 129.8 kB / 341 MB, free: 4.996 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.067e-05/0.2823, allocations: 27.72 kB / 341 MB, free: 4.969 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.058e-05/0.2824, allocations: 29.52 kB / 341 MB, free: 4.938 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.2824, allocations: 0 / 341 MB, free: 4.938 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.2824, allocations: 0 / 341 MB, free: 4.938 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.2824, allocations: 0 / 341 MB, free: 4.938 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003595/0.2828, allocations: 329.3 kB / 341.4 MB, free: 4.566 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.2828, allocations: 0 / 341.4 MB, free: 4.566 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001523/0.2829, allocations: 35.86 kB / 341.4 MB, free: 4.531 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006262/0.2836, allocations: 232.7 kB / 341.6 MB, free: 4.301 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.018e-05/0.2836, allocations: 7.984 kB / 341.6 MB, free: 4.293 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006231/0.2898, allocations: 2.595 MB / 344.2 MB, free: 1.562 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.2899, allocations: 0 / 344.2 MB, free: 1.562 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003273/0.2932, allocations: 0.9214 MB / 345.1 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.865e-05/0.2933, allocations: 100.9 kB / 345.2 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.336e-05/0.2933, allocations: 7.938 kB / 345.2 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000289/0.2936, allocations: 44.03 kB / 345.3 MB, free: 464 kB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.997e-05/0.2937, allocations: 7.984 kB / 345.3 MB, free: 456 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.83e-05/0.2937, allocations: 4 kB / 345.3 MB, free: 452 kB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001752/0.2939, allocations: 161.6 kB / 345.5 MB, free: 292 kB / 270.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.2939, allocations: 0 / 345.5 MB, free: 292 kB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004684/0.2944, allocations: 79.84 kB / 345.5 MB, free: 212 kB / 270.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (CL.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001479/0.2945, allocations: 107.2 kB / 345.6 MB, free: 92 kB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001603/0.2961, allocations: 478.4 kB / 346.1 MB, free: 15.61 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.571e-06/0.2961, allocations: 4.062 kB / 346.1 MB, free: 15.6 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001071/0.2972, allocations: 350.5 kB / 346.5 MB, free: 15.25 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003916/0.2976, allocations: 34.78 kB / 346.5 MB, free: 15.21 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001361/0.299, allocations: 0.6915 MB / 347.2 MB, free: 14.5 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003755/0.2994, allocations: 0.7401 MB / 347.9 MB, free: 13.74 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.436e-05/0.2995, allocations: 17.55 kB / 347.9 MB, free: 13.72 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.853e-05/0.2995, allocations: 15.44 kB / 348 MB, free: 13.71 MB / 286.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2995, allocations: 0 / 348 MB, free: 13.71 MB / 286.1 MB Notification: Performance of Templates: time 0.008562/0.3081, allocations: 4.589 MB / 352.5 MB, free: 9.117 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1)