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.001134/0.001134, allocations: 107.9 kB / 16.62 MB, free: 6.961 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.001094/0.001094, allocations: 189.8 kB / 17.54 MB, free: 6.066 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.5/1.5, allocations: 205.1 MB / 223.4 MB, free: 12.38 MB / 190.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.001258/0.001258, allocations: 55.94 kB / 279.5 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1117, allocations: 46.63 MB / 326.1 MB, free: 4.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004525/0.1163, allocations: 2.713 MB / 328.9 MB, free: 2.043 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001343/0.1177, allocations: 0.7061 MB / 329.6 MB, free: 1.328 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000137/0.1179, allocations: 7.938 kB / 329.6 MB, free: 1.32 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001879/0.1181, allocations: 27.77 kB / 329.6 MB, free: 1.293 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001482/0.1182, allocations: 71.45 kB / 329.7 MB, free: 1.223 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003272/0.1186, allocations: 75.86 kB / 329.7 MB, free: 1.148 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004125/0.119, allocations: 362.5 kB / 330.1 MB, free: 0.793 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002407/0.1192, allocations: 84.72 kB / 330.2 MB, free: 0.7148 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002294/0.1195, allocations: 147.5 kB / 330.3 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001846/0.1197, allocations: 159.4 kB / 330.5 MB, free: 424 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.052e-05/0.1197, allocations: 32 kB / 330.5 MB, free: 392 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.771e-05/0.1198, allocations: 32 kB / 330.5 MB, free: 360 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.431e-05/0.1199, allocations: 59.77 kB / 330.6 MB, free: 300 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001206/0.12, allocations: 143.4 kB / 330.7 MB, free: 156 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003372/0.1203, allocations: 355.1 kB / 331.1 MB, free: 15.8 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.1203, allocations: 0 / 331.1 MB, free: 15.8 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1203, allocations: 0 / 331.1 MB, free: 15.8 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.1204, allocations: 0 / 331.1 MB, free: 15.8 MB / 286.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.001468/0.1218, allocations: 0.6391 MB / 331.7 MB, free: 15.12 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.1219, allocations: 8.031 kB / 331.7 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.835e-05/0.122, allocations: 32.56 kB / 331.8 MB, free: 15.08 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003165/0.1223, allocations: 260.8 kB / 332 MB, free: 14.79 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.342e-05/0.1223, allocations: 16.81 kB / 332 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.099e-05/0.1224, allocations: 16.38 kB / 332 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006584/0.1231, allocations: 302.9 kB / 332.3 MB, free: 14.44 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.1231, allocations: 3.938 kB / 332.3 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.276e-05/0.1231, allocations: 8 kB / 332.4 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.1231, allocations: 8 kB / 332.4 MB, free: 14.42 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007237/0.1239, allocations: 261.6 kB / 332.6 MB, free: 14.16 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001658/0.1255, allocations: 1.077 MB / 333.7 MB, free: 13.01 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001852/0.1274, allocations: 438.3 kB / 334.1 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003854/0.1278, allocations: 144.8 kB / 334.3 MB, free: 12.43 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.3e-05/0.1278, allocations: 4 kB / 334.3 MB, free: 12.43 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.92e-05/0.1279, allocations: 38.5 kB / 334.3 MB, free: 12.38 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.183e-06/0.1279, allocations: 0 / 334.3 MB, free: 12.38 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.0049/0.1328, allocations: 1.018 MB / 335.3 MB, free: 11.33 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/0.1329, allocations: 55.41 kB / 335.4 MB, free: 11.27 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002649/0.1331, allocations: 224.1 kB / 335.6 MB, free: 11.03 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.932e-05/0.1332, allocations: 29.7 kB / 335.6 MB, free: 11 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.1333, allocations: 160.1 kB / 335.8 MB, free: 10.84 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.785e-05/0.1334, allocations: 47.27 kB / 335.8 MB, free: 10.79 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.206e-05/0.1335, allocations: 37.69 kB / 335.9 MB, free: 10.75 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.1336, allocations: 326.8 kB / 336.2 MB, free: 10.42 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000328/0.1339, allocations: 107.9 kB / 336.3 MB, free: 10.31 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003244/0.1343, allocations: 124.8 kB / 336.4 MB, free: 10.19 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006172/0.1349, allocations: 229.6 kB / 336.6 MB, free: 9.957 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.1349, allocations: 0 / 336.6 MB, free: 9.957 MB / 286.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002838/0.1377, allocations: 0.6344 MB / 337.3 MB, free: 9.312 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.718e-05/0.1378, allocations: 7.984 kB / 337.3 MB, free: 9.305 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.1378, allocations: 0 / 337.3 MB, free: 9.305 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006941/0.1385, allocations: 224.6 kB / 337.5 MB, free: 9.082 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001676/0.1387, allocations: 31.98 kB / 337.5 MB, free: 9.051 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006704/0.1454, allocations: 2.755 MB / 340.3 MB, free: 6.156 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003065/0.1457, allocations: 31.89 kB / 340.3 MB, free: 6.125 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.113e-05/0.1457, allocations: 7.984 kB / 340.3 MB, free: 6.117 MB / 286.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.000169/0.1459, allocations: 137.7 kB / 340.5 MB, free: 5.973 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.469e-05/0.146, allocations: 27.75 kB / 340.5 MB, free: 5.945 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.762e-05/0.146, allocations: 37.44 kB / 340.5 MB, free: 5.906 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.146, allocations: 0 / 340.5 MB, free: 5.906 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.395e-06/0.1461, allocations: 0 / 340.5 MB, free: 5.906 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.1461, allocations: 0 / 340.5 MB, free: 5.906 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003691/0.1464, allocations: 325.4 kB / 340.8 MB, free: 5.539 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.1464, allocations: 0 / 340.8 MB, free: 5.539 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001515/0.1466, allocations: 27.98 kB / 340.9 MB, free: 5.512 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006408/0.1473, allocations: 216.7 kB / 341.1 MB, free: 5.297 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.632e-05/0.1473, allocations: 11.98 kB / 341.1 MB, free: 5.285 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006562/0.1539, allocations: 2.727 MB / 343.8 MB, free: 2.418 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1539, allocations: 0 / 343.8 MB, free: 2.418 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003207/0.1571, allocations: 0.851 MB / 344.7 MB, free: 1.547 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.153e-05/0.1572, allocations: 96.88 kB / 344.8 MB, free: 1.434 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.403e-05/0.1572, allocations: 8.062 kB / 344.8 MB, free: 1.426 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002853/0.1575, allocations: 31.97 kB / 344.8 MB, free: 1.395 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.8e-05/0.1576, allocations: 11.98 kB / 344.8 MB, free: 1.383 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.931e-05/0.1576, allocations: 4 kB / 344.8 MB, free: 1.379 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001509/0.1578, allocations: 161.6 kB / 345 MB, free: 1.223 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1578, allocations: 0 / 345 MB, free: 1.223 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004677/0.1582, allocations: 83.84 kB / 345.1 MB, free: 1.141 MB / 286.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.0001509/0.1584, allocations: 99.19 kB / 345.2 MB, free: 1.031 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001574/0.16, allocations: 465.7 kB / 345.6 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.16, allocations: 0 / 345.6 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001066/0.1611, allocations: 322.6 kB / 345.9 MB, free: 244 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003649/0.1614, allocations: 40.69 kB / 346 MB, free: 204 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001319/0.1628, allocations: 0.646 MB / 346.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002693/0.1631, allocations: 0.7437 MB / 347.4 MB, free: 14.76 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.203e-05/0.1631, allocations: 17.48 kB / 347.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.792e-05/0.1632, allocations: 15.44 kB / 347.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1632, allocations: 0 / 347.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of Templates: time 0.008004/0.1712, allocations: 4.901 MB / 352.3 MB, free: 9.824 MB / 302.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)