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.001028/0.001028, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001393/0.001392, allocations: 191.8 kB / 16.25 MB, free: 6.633 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.751/1.751, allocations: 205.1 MB / 222.1 MB, free: 4.688 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.001662/0.001662, allocations: 47.92 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3375/0.3392, allocations: 46.63 MB / 324.8 MB, free: 1.949 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004106/0.3433, allocations: 2.717 MB / 327.6 MB, free: 15.8 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001294/0.3446, allocations: 0.7042 MB / 328.3 MB, free: 15.22 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001459/0.3448, allocations: 7.688 kB / 328.3 MB, free: 15.22 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001845/0.345, allocations: 28.02 kB / 328.3 MB, free: 15.2 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001509/0.3452, allocations: 68.39 kB / 328.4 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003896/0.3456, allocations: 89.66 kB / 328.5 MB, free: 15.06 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006203/0.3462, allocations: 356.7 kB / 328.8 MB, free: 14.85 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003342/0.3465, allocations: 88.17 kB / 328.9 MB, free: 14.81 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000326/0.3469, allocations: 142.9 kB / 329 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002793/0.3472, allocations: 158.6 kB / 329.2 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.993e-05/0.3473, allocations: 31.28 kB / 329.2 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.431e-05/0.3474, allocations: 30.38 kB / 329.2 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.796e-05/0.3475, allocations: 77.98 kB / 329.3 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002252/0.3477, allocations: 139.7 kB / 329.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005326/0.3483, allocations: 341 kB / 329.8 MB, free: 14.2 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.3483, allocations: 0 / 329.8 MB, free: 14.2 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3483, allocations: 3.938 kB / 329.8 MB, free: 14.19 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.648e-06/0.3483, allocations: 1.156 kB / 329.8 MB, free: 14.19 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.001984/0.3503, allocations: 0.6391 MB / 330.4 MB, free: 13.65 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.51e-05/0.3504, allocations: 13.25 kB / 330.4 MB, free: 13.65 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000109/0.3505, allocations: 31.66 kB / 330.5 MB, free: 13.63 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004084/0.3509, allocations: 253.1 kB / 330.7 MB, free: 13.37 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.836e-05/0.351, allocations: 12.47 kB / 330.7 MB, free: 13.37 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.869e-05/0.351, allocations: 21.19 kB / 330.8 MB, free: 13.36 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007694/0.3518, allocations: 297.6 kB / 331 MB, free: 13.17 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.3518, allocations: 3.938 kB / 331.1 MB, free: 13.16 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.506e-05/0.3519, allocations: 10.53 kB / 331.1 MB, free: 13.16 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.3519, allocations: 5.344 kB / 331.1 MB, free: 13.16 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008006/0.3527, allocations: 263.8 kB / 331.3 MB, free: 13.05 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001794/0.3545, allocations: 1.08 MB / 332.4 MB, free: 12.11 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002008/0.3565, allocations: 436.8 kB / 332.8 MB, free: 11.92 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003729/0.3569, allocations: 144.8 kB / 333 MB, free: 11.78 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.439e-05/0.357, allocations: 4 kB / 333 MB, free: 11.77 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.744e-05/0.357, allocations: 42.5 kB / 333 MB, free: 11.72 MB / 270.1 MB Notification: Performance of pre-optimization done (n=14): time 1.392e-06/0.357, allocations: 0 / 333 MB, free: 11.72 MB / 270.1 MB Notification: Performance of matching and sorting (n=14): time 0.004968/0.362, allocations: 1.026 MB / 334 MB, free: 10.67 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.153e-05/0.362, allocations: 51.41 kB / 334.1 MB, free: 10.61 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002474/0.3623, allocations: 216.2 kB / 334.3 MB, free: 10.38 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.362e-05/0.3623, allocations: 29.7 kB / 334.3 MB, free: 10.34 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000123/0.3625, allocations: 164 kB / 334.5 MB, free: 10.18 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.622e-05/0.3625, allocations: 47.3 kB / 334.5 MB, free: 10.13 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.896e-05/0.3626, allocations: 41.59 kB / 334.6 MB, free: 10.09 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.3628, allocations: 330.8 kB / 334.9 MB, free: 9.754 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003317/0.3631, allocations: 107.9 kB / 335 MB, free: 9.648 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003341/0.3635, allocations: 128.6 kB / 335.1 MB, free: 9.52 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006188/0.3641, allocations: 221.6 kB / 335.4 MB, free: 9.297 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3641, allocations: 3.938 kB / 335.4 MB, free: 9.293 MB / 270.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002834/0.3669, allocations: 0.6305 MB / 336 MB, free: 8.652 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.541e-05/0.367, allocations: 11.98 kB / 336 MB, free: 8.641 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.367, allocations: 0 / 336 MB, free: 8.641 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007535/0.3677, allocations: 220.6 kB / 336.2 MB, free: 8.422 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000166/0.3679, allocations: 31.98 kB / 336.2 MB, free: 8.391 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007203/0.3751, allocations: 2.747 MB / 339 MB, free: 5.504 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003575/0.3755, allocations: 27.83 kB / 339 MB, free: 5.477 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.452e-05/0.3756, allocations: 7.984 kB / 339 MB, free: 5.469 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.0002279/0.3758, allocations: 133.8 kB / 339.2 MB, free: 5.328 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.871e-05/0.3759, allocations: 31.72 kB / 339.2 MB, free: 5.297 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.249e-05/0.3759, allocations: 21.52 kB / 339.2 MB, free: 5.273 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.3759, allocations: 4 kB / 339.2 MB, free: 5.27 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3759, allocations: 3.938 kB / 339.2 MB, free: 5.266 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.279e-06/0.376, allocations: 0 / 339.2 MB, free: 5.266 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004577/0.3764, allocations: 329.3 kB / 339.5 MB, free: 4.895 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.3764, allocations: 0 / 339.5 MB, free: 4.895 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001577/0.3766, allocations: 27.98 kB / 339.6 MB, free: 4.867 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006356/0.3772, allocations: 220.8 kB / 339.8 MB, free: 4.648 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.072e-05/0.3773, allocations: 7.969 kB / 339.8 MB, free: 4.641 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006914/0.3842, allocations: 2.731 MB / 342.5 MB, free: 1.77 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.3842, allocations: 0 / 342.5 MB, free: 1.77 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003398/0.3877, allocations: 0.8477 MB / 343.4 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001398/0.3878, allocations: 104.9 kB / 343.5 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.454e-05/0.3879, allocations: 0 / 343.5 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002959/0.3882, allocations: 31.97 kB / 343.5 MB, free: 0.75 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.369e-05/0.3882, allocations: 11.98 kB / 343.5 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.777e-05/0.3883, allocations: 0 / 343.5 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001739/0.3885, allocations: 169.7 kB / 343.7 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3885, allocations: 0 / 343.7 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005361/0.389, allocations: 75.84 kB / 343.8 MB, free: 0.5 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 (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.0002045/0.3892, allocations: 111.1 kB / 343.9 MB, free: 388 kB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001798/0.391, allocations: 460.7 kB / 344.3 MB, free: 15.92 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.391, allocations: 0 / 344.3 MB, free: 15.92 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001028/0.3921, allocations: 330.6 kB / 344.6 MB, free: 15.58 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003897/0.3925, allocations: 32.58 kB / 344.7 MB, free: 15.55 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00144/0.3939, allocations: 0.6475 MB / 345.3 MB, free: 14.88 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004008/0.3943, allocations: 0.7437 MB / 346.1 MB, free: 14.11 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.16e-05/0.3944, allocations: 13.55 kB / 346.1 MB, free: 14.1 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.954e-05/0.3945, allocations: 15.44 kB / 346.1 MB, free: 14.09 MB / 286.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3945, allocations: 4 kB / 346.1 MB, free: 14.08 MB / 286.1 MB Notification: Performance of Templates: time 0.00918/0.4037, allocations: 4.894 MB / 351 MB, free: 9.184 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)