Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection") translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001165/0.001165, allocations: 86.33 kB / 15.06 MB, free: 1.09 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.001905/0.001905, allocations: 168.7 kB / 15.95 MB, free: 204 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.54/1.54, allocations: 205.4 MB / 222.1 MB, free: 5.645 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.0007757/0.000776, allocations: 10.81 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2625/0.2633, allocations: 47.6 MB / 326.5 MB, free: 1.602 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.002254/0.2656, allocations: 2.256 MB / 328.7 MB, free: 15.82 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001137/0.2667, allocations: 0.6688 MB / 329.4 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001147/0.2669, allocations: 4.312 kB / 329.4 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001212/0.267, allocations: 30.95 kB / 329.4 MB, free: 15.25 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001226/0.2671, allocations: 68.14 kB / 329.5 MB, free: 15.19 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002651/0.2674, allocations: 83.33 kB / 329.6 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003507/0.2678, allocations: 315.3 kB / 329.9 MB, free: 14.93 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001798/0.2679, allocations: 70.56 kB / 330 MB, free: 14.89 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002089/0.2682, allocations: 121.5 kB / 330.1 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001865/0.2684, allocations: 138.4 kB / 330.2 MB, free: 14.73 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.718e-05/0.2684, allocations: 16.09 kB / 330.2 MB, free: 14.73 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.018e-05/0.2685, allocations: 14.78 kB / 330.2 MB, free: 14.73 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.978e-05/0.2685, allocations: 59.61 kB / 330.3 MB, free: 14.68 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.218e-05/0.2686, allocations: 73.64 kB / 330.4 MB, free: 14.63 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002476/0.2689, allocations: 242.9 kB / 330.6 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.2689, allocations: 0 / 330.6 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2689, allocations: 1.062 kB / 330.6 MB, free: 14.45 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.952e-06/0.2689, allocations: 0 / 330.6 MB, free: 14.45 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.001386/0.2703, allocations: 0.6111 MB / 331.2 MB, free: 13.95 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.2704, allocations: 9.312 kB / 331.2 MB, free: 13.95 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.076e-05/0.2704, allocations: 26.34 kB / 331.3 MB, free: 13.93 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002999/0.2708, allocations: 252.4 kB / 331.5 MB, free: 13.67 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.185e-05/0.2708, allocations: 19.83 kB / 331.5 MB, free: 13.66 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.649e-05/0.2708, allocations: 16.25 kB / 331.5 MB, free: 13.65 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007002/0.2715, allocations: 308.6 kB / 331.8 MB, free: 13.46 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.2716, allocations: 0.9062 kB / 331.8 MB, free: 13.46 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.259e-05/0.2716, allocations: 14.28 kB / 331.9 MB, free: 13.45 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.2716, allocations: 4.5 kB / 331.9 MB, free: 13.45 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007635/0.2724, allocations: 280.4 kB / 332.1 MB, free: 13.34 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001709/0.2741, allocations: 1.089 MB / 333.2 MB, free: 12.4 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00187/0.276, allocations: 492.7 kB / 333.7 MB, free: 12.2 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004028/0.2764, allocations: 156.7 kB / 333.9 MB, free: 12.04 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.88e-05/0.2765, allocations: 4 kB / 333.9 MB, free: 12.04 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.917e-05/0.2765, allocations: 42.56 kB / 333.9 MB, free: 11.98 MB / 270.1 MB Notification: Performance of pre-optimization done (n=14): time 2.003e-06/0.2765, allocations: 0 / 333.9 MB, free: 11.98 MB / 270.1 MB Notification: Performance of matching and sorting (n=14): time 0.004791/0.2813, allocations: 1.12 MB / 335 MB, free: 10.84 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.327e-05/0.2814, allocations: 55.41 kB / 335.1 MB, free: 10.77 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003068/0.2817, allocations: 212.2 kB / 335.3 MB, free: 10.55 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.496e-05/0.2818, allocations: 29.7 kB / 335.3 MB, free: 10.51 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001243/0.2819, allocations: 160.1 kB / 335.5 MB, free: 10.35 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.552e-05/0.282, allocations: 51.3 kB / 335.5 MB, free: 10.3 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.412e-05/0.282, allocations: 0 / 335.5 MB, free: 10.3 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.2821, allocations: 334.8 kB / 335.9 MB, free: 9.965 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003372/0.2825, allocations: 119.9 kB / 336 MB, free: 9.848 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003348/0.2828, allocations: 129.5 kB / 336.1 MB, free: 9.715 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003337/0.2832, allocations: 119.2 kB / 336.2 MB, free: 9.602 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2832, allocations: 3.938 kB / 336.2 MB, free: 9.598 MB / 270.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002817/0.286, allocations: 0.697 MB / 336.9 MB, free: 8.891 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.244e-05/0.2861, allocations: 8 kB / 336.9 MB, free: 8.883 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.2861, allocations: 3.984 kB / 336.9 MB, free: 8.879 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007888/0.2869, allocations: 232.7 kB / 337.2 MB, free: 8.648 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002027/0.2871, allocations: 39.91 kB / 337.2 MB, free: 8.609 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006653/0.2938, allocations: 2.603 MB / 339.8 MB, free: 5.871 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003345/0.2941, allocations: 35.86 kB / 339.8 MB, free: 5.836 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.003e-05/0.2942, allocations: 11.98 kB / 339.8 MB, free: 5.824 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 (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 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001702/0.2943, allocations: 125.8 kB / 340 MB, free: 5.691 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.548e-05/0.2944, allocations: 19.81 kB / 340 MB, free: 5.672 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.858e-05/0.2945, allocations: 37.41 kB / 340 MB, free: 5.633 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.2945, allocations: 4 kB / 340 MB, free: 5.629 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.2945, allocations: 0 / 340 MB, free: 5.629 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.2945, allocations: 0 / 340 MB, free: 5.629 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004329/0.2949, allocations: 321.3 kB / 340.3 MB, free: 5.266 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.295, allocations: 7.938 kB / 340.3 MB, free: 5.258 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001645/0.2951, allocations: 27.98 kB / 340.4 MB, free: 5.23 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006407/0.2958, allocations: 232.7 kB / 340.6 MB, free: 5 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.67e-05/0.2958, allocations: 11.94 kB / 340.6 MB, free: 4.988 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006274/0.3021, allocations: 2.603 MB / 343.2 MB, free: 2.25 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.3021, allocations: 0 / 343.2 MB, free: 2.25 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003217/0.3054, allocations: 0.9059 MB / 344.1 MB, free: 1.324 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001141/0.3055, allocations: 104.8 kB / 344.2 MB, free: 1.203 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.532e-05/0.3056, allocations: 0 / 344.2 MB, free: 1.203 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003105/0.3059, allocations: 44.03 kB / 344.3 MB, free: 1.16 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.048e-05/0.306, allocations: 11.98 kB / 344.3 MB, free: 1.148 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.969e-05/0.306, allocations: 4 kB / 344.3 MB, free: 1.145 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001589/0.3061, allocations: 157.8 kB / 344.4 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3062, allocations: 0 / 344.4 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005064/0.3067, allocations: 75.84 kB / 344.5 MB, free: 0.918 MB / 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 (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 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001532/0.3068, allocations: 107.2 kB / 344.6 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001557/0.3084, allocations: 470.4 kB / 345.1 MB, free: 336 kB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/0.3084, allocations: 4 kB / 345.1 MB, free: 332 kB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001079/0.3095, allocations: 347.2 kB / 345.4 MB, free: 15.97 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004053/0.3099, allocations: 40.48 kB / 345.5 MB, free: 15.93 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001375/0.3113, allocations: 0.6713 MB / 346.1 MB, free: 15.24 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003214/0.3117, allocations: 0.7401 MB / 346.9 MB, free: 14.48 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.452e-05/0.3118, allocations: 17.55 kB / 346.9 MB, free: 14.46 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.902e-05/0.3118, allocations: 15.44 kB / 346.9 MB, free: 14.45 MB / 286.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3118, allocations: 0 / 346.9 MB, free: 14.45 MB / 286.1 MB Notification: Performance of Templates: time 0.009011/0.3208, allocations: 4.47 MB / 351.4 MB, free: 9.977 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1)