Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection") translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.0009825/0.0009827, allocations: 91.33 kB / 16.31 MB, free: 5.621 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.001278/0.001279, allocations: 180.6 kB / 17.21 MB, free: 5.539 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.46/1.46, allocations: 205.4 MB / 223.4 MB, free: 5.539 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.000469/0.000469, allocations: 12 kB / 280.1 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2652, allocations: 47.59 MB / 327.7 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.00287/0.2682, allocations: 2.266 MB / 330 MB, free: 15.63 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001623/0.2698, allocations: 0.6713 MB / 330.7 MB, free: 15.08 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003155/0.2702, allocations: 3.531 kB / 330.7 MB, free: 15.08 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001877/0.2704, allocations: 31.91 kB / 330.7 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002248/0.2706, allocations: 68.38 kB / 330.8 MB, free: 14.99 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003365/0.271, allocations: 74.05 kB / 330.8 MB, free: 14.93 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004521/0.2714, allocations: 320 kB / 331.1 MB, free: 14.74 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000226/0.2717, allocations: 65.73 kB / 331.2 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000342/0.272, allocations: 126.3 kB / 331.3 MB, free: 14.63 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002869/0.2723, allocations: 138.5 kB / 331.5 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.937e-05/0.2724, allocations: 16.06 kB / 331.5 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.122e-05/0.2725, allocations: 14.78 kB / 331.5 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.996e-05/0.2725, allocations: 55.36 kB / 331.6 MB, free: 14.5 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001084/0.2727, allocations: 69.7 kB / 331.6 MB, free: 14.45 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002679/0.2729, allocations: 243.4 kB / 331.9 MB, free: 14.27 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.2729, allocations: 4 kB / 331.9 MB, free: 14.26 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.273, allocations: 0 / 331.9 MB, free: 14.26 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.19e-05/0.273, allocations: 0 / 331.9 MB, free: 14.26 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.001494/0.2745, allocations: 0.6166 MB / 332.5 MB, free: 13.75 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.2745, allocations: 8.688 kB / 332.5 MB, free: 13.75 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.683e-05/0.2746, allocations: 25.81 kB / 332.5 MB, free: 13.74 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003271/0.275, allocations: 251.8 kB / 332.8 MB, free: 13.48 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.607e-05/0.275, allocations: 20.11 kB / 332.8 MB, free: 13.46 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.238e-05/0.2751, allocations: 21.11 kB / 332.8 MB, free: 13.46 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007251/0.2758, allocations: 313 kB / 333.1 MB, free: 13.26 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.2758, allocations: 0 / 333.1 MB, free: 13.26 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.228e-05/0.2758, allocations: 9.656 kB / 333.1 MB, free: 13.25 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.487e-06/0.2759, allocations: 5.594 kB / 333.1 MB, free: 13.25 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008366/0.2767, allocations: 292.1 kB / 333.4 MB, free: 13.13 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001882/0.2786, allocations: 1.077 MB / 334.5 MB, free: 12.2 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001908/0.2805, allocations: 481 kB / 335 MB, free: 12.02 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004099/0.281, allocations: 157.7 kB / 335.1 MB, free: 11.92 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.456e-05/0.281, allocations: 4 kB / 335.1 MB, free: 11.91 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.837e-05/0.281, allocations: 38.56 kB / 335.2 MB, free: 11.87 MB / 270.1 MB Notification: Performance of pre-optimization done (n=14): time 1.453e-06/0.281, allocations: 3.938 kB / 335.2 MB, free: 11.86 MB / 270.1 MB Notification: Performance of matching and sorting (n=14): time 0.004863/0.2859, allocations: 1.124 MB / 336.3 MB, free: 10.71 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.629e-05/0.286, allocations: 55.39 kB / 336.3 MB, free: 10.64 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002355/0.2862, allocations: 216.2 kB / 336.5 MB, free: 10.42 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.162e-05/0.2862, allocations: 25.7 kB / 336.6 MB, free: 10.39 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001149/0.2864, allocations: 156.1 kB / 336.7 MB, free: 10.23 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.151e-05/0.2864, allocations: 51.3 kB / 336.8 MB, free: 10.18 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.313e-05/0.2864, allocations: 0 / 336.8 MB, free: 10.18 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.2866, allocations: 338.8 kB / 337.1 MB, free: 9.84 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003458/0.2869, allocations: 119.9 kB / 337.2 MB, free: 9.723 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003437/0.2873, allocations: 137.5 kB / 337.4 MB, free: 9.582 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003415/0.2876, allocations: 118.8 kB / 337.5 MB, free: 9.469 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.2876, allocations: 0 / 337.5 MB, free: 9.469 MB / 270.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002829/0.2905, allocations: 0.6892 MB / 338.2 MB, free: 8.77 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.2905, allocations: 11.98 kB / 338.2 MB, free: 8.758 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.2905, allocations: 0 / 338.2 MB, free: 8.758 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007117/0.2912, allocations: 228.7 kB / 338.4 MB, free: 8.531 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001675/0.2914, allocations: 35.98 kB / 338.4 MB, free: 8.496 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0065/0.2979, allocations: 2.607 MB / 341 MB, free: 5.754 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003203/0.2983, allocations: 47.88 kB / 341.1 MB, free: 5.707 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.279e-05/0.2983, allocations: 4 kB / 341.1 MB, free: 5.703 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.0001788/0.2985, allocations: 133.8 kB / 341.2 MB, free: 5.562 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.568e-05/0.2986, allocations: 23.81 kB / 341.2 MB, free: 5.539 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.407e-05/0.2986, allocations: 25.48 kB / 341.3 MB, free: 5.512 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.2986, allocations: 0 / 341.3 MB, free: 5.512 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.2986, allocations: 4 kB / 341.3 MB, free: 5.508 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.2986, allocations: 7.922 kB / 341.3 MB, free: 5.5 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004075/0.2991, allocations: 325.3 kB / 341.6 MB, free: 5.133 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.2991, allocations: 0 / 341.6 MB, free: 5.133 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000158/0.2992, allocations: 31.97 kB / 341.6 MB, free: 5.102 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006317/0.2999, allocations: 236.6 kB / 341.9 MB, free: 4.867 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.248e-05/0.2999, allocations: 11.88 kB / 341.9 MB, free: 4.855 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006108/0.306, allocations: 2.595 MB / 344.5 MB, free: 2.125 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.306, allocations: 4.031 kB / 344.5 MB, free: 2.121 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003058/0.3091, allocations: 0.9059 MB / 345.4 MB, free: 1.195 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.624e-05/0.3092, allocations: 96.95 kB / 345.5 MB, free: 1.082 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.527e-05/0.3092, allocations: 3.984 kB / 345.5 MB, free: 1.078 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002846/0.3095, allocations: 39.97 kB / 345.5 MB, free: 1.039 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.294e-05/0.3096, allocations: 15.98 kB / 345.5 MB, free: 1.023 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.001e-05/0.3096, allocations: 7.984 kB / 345.5 MB, free: 1.016 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001435/0.3098, allocations: 153.9 kB / 345.7 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3098, allocations: 0 / 345.7 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004965/0.3103, allocations: 79.84 kB / 345.8 MB, free: 0.7891 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.0001223/0.3104, allocations: 99.25 kB / 345.9 MB, free: 0.6797 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001501/0.3119, allocations: 478.4 kB / 346.3 MB, free: 204 kB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3119, allocations: 0 / 346.3 MB, free: 204 kB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.313, allocations: 347.2 kB / 346.7 MB, free: 15.85 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003794/0.3134, allocations: 44.53 kB / 346.7 MB, free: 15.8 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001287/0.3147, allocations: 0.6636 MB / 347.4 MB, free: 15.12 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000269/0.315, allocations: 0.7479 MB / 348.1 MB, free: 14.35 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.06e-05/0.315, allocations: 13.55 kB / 348.1 MB, free: 14.34 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.182e-05/0.3151, allocations: 15.44 kB / 348.1 MB, free: 14.32 MB / 286.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3151, allocations: 7.938 kB / 348.2 MB, free: 14.31 MB / 286.1 MB Notification: Performance of Templates: time 0.008113/0.3232, allocations: 4.458 MB / 352.6 MB, free: 9.855 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1)