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.00158/0.00158, 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.001935/0.001935, allocations: 195.7 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.52/1.52, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.00173/0.00173, allocations: 55.92 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.2594, allocations: 46.63 MB / 325.3 MB, free: 1.828 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003597/0.263, allocations: 2.664 MB / 328 MB, free: 15.71 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001525/0.2646, allocations: 0.7039 MB / 328.7 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001357/0.2647, allocations: 4.375 kB / 328.7 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001705/0.2649, allocations: 43.05 kB / 328.7 MB, free: 15.1 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001439/0.2651, allocations: 76.98 kB / 328.8 MB, free: 15.03 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003164/0.2654, allocations: 105.2 kB / 328.9 MB, free: 14.94 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003598/0.2658, allocations: 356.8 kB / 329.3 MB, free: 14.73 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001796/0.266, allocations: 83.14 kB / 329.3 MB, free: 14.69 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000186/0.2662, allocations: 140.6 kB / 329.5 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001905/0.2664, allocations: 162.4 kB / 329.6 MB, free: 14.5 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.172e-05/0.2664, allocations: 31.22 kB / 329.7 MB, free: 14.5 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.648e-05/0.2665, allocations: 34.5 kB / 329.7 MB, free: 14.49 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.822e-05/0.2666, allocations: 74.2 kB / 329.8 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001431/0.2667, allocations: 142.7 kB / 329.9 MB, free: 14.33 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003228/0.267, allocations: 337.3 kB / 330.2 MB, free: 14.08 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.2671, allocations: 0 / 330.2 MB, free: 14.08 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2671, allocations: 1.188 kB / 330.2 MB, free: 14.08 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.2671, allocations: 0 / 330.2 MB, free: 14.08 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.001426/0.2685, allocations: 0.6466 MB / 330.9 MB, free: 13.53 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.2686, allocations: 10.03 kB / 330.9 MB, free: 13.53 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.763e-05/0.2686, allocations: 30.22 kB / 330.9 MB, free: 13.52 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003291/0.269, allocations: 257 kB / 331.2 MB, free: 13.25 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.353e-05/0.269, allocations: 12.94 kB / 331.2 MB, free: 13.25 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.318e-05/0.2691, allocations: 20.94 kB / 331.2 MB, free: 13.24 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000664/0.2697, allocations: 298.3 kB / 331.5 MB, free: 13.05 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.2698, allocations: 3.984 kB / 331.5 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.224e-05/0.2698, allocations: 14.58 kB / 331.5 MB, free: 13.03 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.958e-06/0.2698, allocations: 5.562 kB / 331.5 MB, free: 13.03 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008536/0.2707, allocations: 267.5 kB / 331.8 MB, free: 12.92 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001677/0.2724, allocations: 1.069 MB / 332.9 MB, free: 11.99 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001931/0.2743, allocations: 440.2 kB / 333.3 MB, free: 11.75 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003854/0.2747, allocations: 144.8 kB / 333.4 MB, free: 11.61 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.368e-05/0.2747, allocations: 8 kB / 333.4 MB, free: 11.6 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.445e-05/0.2748, allocations: 34.55 kB / 333.5 MB, free: 11.56 MB / 270.1 MB Notification: Performance of pre-optimization done (n=14): time 1.302e-06/0.2748, allocations: 0 / 333.5 MB, free: 11.56 MB / 270.1 MB Notification: Performance of matching and sorting (n=14): time 0.004901/0.2797, allocations: 1.026 MB / 334.5 MB, free: 10.5 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.504e-05/0.2798, allocations: 55.39 kB / 334.5 MB, free: 10.44 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002227/0.28, allocations: 216.2 kB / 334.8 MB, free: 10.21 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.195e-05/0.28, allocations: 33.7 kB / 334.8 MB, free: 10.17 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.2802, allocations: 152.1 kB / 334.9 MB, free: 10.02 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.176e-05/0.2802, allocations: 51.28 kB / 335 MB, free: 9.969 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001443/0.2804, allocations: 37.61 kB / 335 MB, free: 9.926 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.2806, allocations: 338.8 kB / 335.4 MB, free: 9.586 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003355/0.2809, allocations: 103.9 kB / 335.5 MB, free: 9.484 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003491/0.2813, allocations: 129.6 kB / 335.6 MB, free: 9.352 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000636/0.2819, allocations: 224.6 kB / 335.8 MB, free: 9.129 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2819, allocations: 0 / 335.8 MB, free: 9.129 MB / 270.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002742/0.2847, allocations: 0.6383 MB / 336.4 MB, free: 8.48 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.2847, allocations: 4 kB / 336.4 MB, free: 8.477 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.2847, allocations: 0 / 336.4 MB, free: 8.477 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007166/0.2854, allocations: 216.7 kB / 336.7 MB, free: 8.262 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001593/0.2856, allocations: 39.91 kB / 336.7 MB, free: 8.223 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006632/0.2922, allocations: 2.751 MB / 339.4 MB, free: 5.332 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002854/0.2925, allocations: 35.81 kB / 339.5 MB, free: 5.297 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.943e-05/0.2926, allocations: 4 kB / 339.5 MB, free: 5.293 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.0001393/0.2927, allocations: 133.8 kB / 339.6 MB, free: 5.152 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.41e-05/0.2928, allocations: 23.72 kB / 339.6 MB, free: 5.129 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.66e-05/0.2928, allocations: 25.52 kB / 339.7 MB, free: 5.102 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-06/0.2928, allocations: 3.938 kB / 339.7 MB, free: 5.098 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.2928, allocations: 0 / 339.7 MB, free: 5.098 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.2928, allocations: 0 / 339.7 MB, free: 5.098 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000452/0.2933, allocations: 329.3 kB / 340 MB, free: 4.727 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.2933, allocations: 0 / 340 MB, free: 4.727 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000148/0.2935, allocations: 31.92 kB / 340 MB, free: 4.695 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006178/0.2941, allocations: 224.6 kB / 340.2 MB, free: 4.473 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.968e-05/0.2941, allocations: 4 kB / 340.2 MB, free: 4.469 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006335/0.3005, allocations: 2.731 MB / 343 MB, free: 1.598 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.3005, allocations: 0 / 343 MB, free: 1.598 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003119/0.3036, allocations: 0.8511 MB / 343.8 MB, free: 0.7266 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.924e-05/0.3037, allocations: 96.95 kB / 343.9 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.316e-05/0.3037, allocations: 3.984 kB / 343.9 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002809/0.304, allocations: 35.97 kB / 344 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.235e-05/0.3041, allocations: 7.984 kB / 344 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.743e-05/0.3041, allocations: 15.98 kB / 344 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001295/0.3042, allocations: 157.6 kB / 344.1 MB, free: 408 kB / 270.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3042, allocations: 0 / 344.1 MB, free: 408 kB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004344/0.3047, allocations: 79.84 kB / 344.2 MB, free: 328 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.000121/0.3048, allocations: 107.2 kB / 344.3 MB, free: 208 kB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001468/0.3063, allocations: 458.9 kB / 344.8 MB, free: 15.74 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3063, allocations: 0 / 344.8 MB, free: 15.74 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00101/0.3073, allocations: 334.5 kB / 345.1 MB, free: 15.4 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003392/0.3077, allocations: 31 kB / 345.1 MB, free: 15.37 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001198/0.3089, allocations: 0.5613 MB / 345.7 MB, free: 14.79 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003244/0.3092, allocations: 0.7476 MB / 346.4 MB, free: 14.02 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 6.945e-05/0.3093, allocations: 13.53 kB / 346.4 MB, free: 14 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.78e-05/0.3093, allocations: 19.44 kB / 346.5 MB, free: 13.98 MB / 286.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3093, allocations: 0 / 346.5 MB, free: 13.98 MB / 286.1 MB Notification: Performance of Templates: time 0.008509/0.3179, allocations: 4.929 MB / 351.4 MB, free: 9.051 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)