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.001086/0.001086, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001222/0.001222, allocations: 193.6 kB / 16.14 MB, free: 6.707 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.552/1.552, allocations: 205.1 MB / 222 MB, free: 4.766 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.001209/0.001209, allocations: 47.94 kB / 278.1 MB, free: 12.78 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.2855, allocations: 46.63 MB / 324.7 MB, free: 1.918 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003431/0.2889, allocations: 2.725 MB / 327.4 MB, free: 15.76 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001107/0.2901, allocations: 0.6956 MB / 328.1 MB, free: 15.19 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001192/0.2902, allocations: 8.125 kB / 328.1 MB, free: 15.19 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001589/0.2904, allocations: 31.84 kB / 328.1 MB, free: 15.16 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001237/0.2905, allocations: 63.81 kB / 328.2 MB, free: 15.11 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002748/0.2908, allocations: 90.11 kB / 328.3 MB, free: 15.03 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003446/0.2911, allocations: 349 kB / 328.6 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001758/0.2913, allocations: 68.31 kB / 328.7 MB, free: 14.79 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002155/0.2915, allocations: 128.3 kB / 328.8 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001705/0.2917, allocations: 150 kB / 329 MB, free: 14.62 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.911e-05/0.2918, allocations: 18.69 kB / 329 MB, free: 14.62 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.938e-05/0.2918, allocations: 19.97 kB / 329 MB, free: 14.62 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.103e-05/0.2919, allocations: 62.05 kB / 329.1 MB, free: 14.56 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001471/0.2921, allocations: 139.4 kB / 329.2 MB, free: 14.47 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003245/0.2924, allocations: 321 kB / 329.5 MB, free: 14.23 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.2924, allocations: 3.938 kB / 329.5 MB, free: 14.23 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2924, allocations: 0 / 329.5 MB, free: 14.23 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.2924, allocations: 1.188 kB / 329.5 MB, free: 14.23 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.001539/0.294, allocations: 0.6391 MB / 330.2 MB, free: 13.69 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.294, allocations: 9.062 kB / 330.2 MB, free: 13.69 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.855e-05/0.2941, allocations: 34.78 kB / 330.2 MB, free: 13.67 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002877/0.2944, allocations: 248.6 kB / 330.4 MB, free: 13.41 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.788e-05/0.2944, allocations: 17.72 kB / 330.5 MB, free: 13.41 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.269e-05/0.2945, allocations: 16.97 kB / 330.5 MB, free: 13.4 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006881/0.2952, allocations: 305.5 kB / 330.8 MB, free: 13.2 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.2952, allocations: 3.938 kB / 330.8 MB, free: 13.2 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.137e-05/0.2952, allocations: 11.09 kB / 330.8 MB, free: 13.19 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.2952, allocations: 8.641 kB / 330.8 MB, free: 13.19 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008237/0.2961, allocations: 264 kB / 331.1 MB, free: 13.08 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00176/0.2978, allocations: 1.08 MB / 332.1 MB, free: 12.14 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001936/0.2998, allocations: 434.5 kB / 332.6 MB, free: 11.96 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003966/0.3002, allocations: 145.7 kB / 332.7 MB, free: 11.89 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.813e-05/0.3002, allocations: 2.312 kB / 332.7 MB, free: 11.89 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/0.3003, allocations: 39.62 kB / 332.7 MB, free: 11.85 MB / 270.1 MB Notification: Performance of pre-optimization done (n=14): time 1.412e-06/0.3003, allocations: 0 / 332.7 MB, free: 11.85 MB / 270.1 MB Notification: Performance of matching and sorting (n=14): time 0.005348/0.3056, allocations: 1.015 MB / 333.8 MB, free: 10.83 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.706e-05/0.3057, allocations: 67.33 kB / 333.8 MB, free: 10.75 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002882/0.306, allocations: 212.2 kB / 334 MB, free: 10.53 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.369e-05/0.3061, allocations: 29.7 kB / 334.1 MB, free: 10.49 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001294/0.3062, allocations: 156.1 kB / 334.2 MB, free: 10.34 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.395e-05/0.3063, allocations: 51.28 kB / 334.3 MB, free: 10.29 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.628e-05/0.3063, allocations: 41.59 kB / 334.3 MB, free: 10.24 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.3065, allocations: 330.8 kB / 334.6 MB, free: 9.906 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003539/0.3069, allocations: 107.9 kB / 334.7 MB, free: 9.801 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003604/0.3072, allocations: 118.3 kB / 334.8 MB, free: 9.68 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006988/0.3079, allocations: 232.6 kB / 335.1 MB, free: 9.449 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.3079, allocations: 0 / 335.1 MB, free: 9.449 MB / 270.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002998/0.3109, allocations: 0.6344 MB / 335.7 MB, free: 8.805 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.311, allocations: 4 kB / 335.7 MB, free: 8.801 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.311, allocations: 4 kB / 335.7 MB, free: 8.797 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007388/0.3117, allocations: 220.6 kB / 335.9 MB, free: 8.578 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001814/0.3119, allocations: 35.97 kB / 336 MB, free: 8.543 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006795/0.3187, allocations: 2.49 MB / 338.5 MB, free: 5.918 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003688/0.3191, allocations: 35.77 kB / 338.5 MB, free: 5.883 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.604e-05/0.3192, allocations: 11.98 kB / 338.5 MB, free: 5.871 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.0002116/0.3194, allocations: 133.8 kB / 338.6 MB, free: 5.73 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.22e-05/0.3195, allocations: 31.77 kB / 338.7 MB, free: 5.699 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.851e-05/0.3195, allocations: 29.45 kB / 338.7 MB, free: 5.668 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.3195, allocations: 0 / 338.7 MB, free: 5.668 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.3196, allocations: 0 / 338.7 MB, free: 5.668 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.814e-06/0.3196, allocations: 4 kB / 338.7 MB, free: 5.664 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004085/0.32, allocations: 317.3 kB / 339 MB, free: 5.305 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.32, allocations: 0 / 339 MB, free: 5.305 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001694/0.3202, allocations: 35.92 kB / 339 MB, free: 5.27 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006549/0.3208, allocations: 216.7 kB / 339.3 MB, free: 5.055 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.741e-05/0.3209, allocations: 7.984 kB / 339.3 MB, free: 5.047 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00632/0.3272, allocations: 2.478 MB / 341.7 MB, free: 2.434 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.3272, allocations: 4.094 kB / 341.7 MB, free: 2.43 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003369/0.3306, allocations: 0.8399 MB / 342.6 MB, free: 1.57 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.425e-05/0.3307, allocations: 96.8 kB / 342.7 MB, free: 1.457 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.707e-05/0.3308, allocations: 11.92 kB / 342.7 MB, free: 1.445 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003002/0.3311, allocations: 35.97 kB / 342.7 MB, free: 1.41 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.829e-05/0.3311, allocations: 12.06 kB / 342.7 MB, free: 1.398 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.082e-05/0.3311, allocations: 7.984 kB / 342.7 MB, free: 1.391 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.000184/0.3313, allocations: 161.6 kB / 342.9 MB, free: 1.234 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3313, allocations: 0 / 342.9 MB, free: 1.234 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.000544/0.3319, allocations: 79.84 kB / 343 MB, free: 1.156 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.0001855/0.3321, allocations: 103.2 kB / 343.1 MB, free: 1.043 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.00159/0.3337, allocations: 442.6 kB / 343.5 MB, free: 0.5977 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.3337, allocations: 0 / 343.5 MB, free: 0.5977 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001083/0.3348, allocations: 338.4 kB / 343.8 MB, free: 260 kB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003954/0.3352, allocations: 31 kB / 343.9 MB, free: 232 kB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001423/0.3366, allocations: 0.6298 MB / 344.5 MB, free: 15.58 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003106/0.337, allocations: 0.7479 MB / 345.3 MB, free: 14.8 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.432e-05/0.337, allocations: 21.53 kB / 345.3 MB, free: 14.78 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.21e-05/0.3371, allocations: 19.38 kB / 345.3 MB, free: 14.76 MB / 286.1 MB Notification: Performance of SimCode: time 4.6e-07/0.3371, allocations: 0 / 345.3 MB, free: 14.76 MB / 286.1 MB Notification: Performance of Templates: time 0.007969/0.3451, allocations: 4.631 MB / 349.9 MB, free: 10.12 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)