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.006631/0.006632, allocations: 103.7 kB / 15.74 MB, free: 5.988 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.001233/0.001234, allocations: 190.1 kB / 16.67 MB, free: 5.914 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.5 MB, free: 4.516 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.001196/0.001196, allocations: 51.11 kB / 326.6 MB, free: 14.57 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1153, allocations: 46.62 MB / 373.2 MB, free: 1.434 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003902/0.1192, allocations: 2.653 MB / 375.8 MB, free: 14.76 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001384/0.1206, allocations: 0.7096 MB / 376.5 MB, free: 14.04 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001303/0.1208, allocations: 4 kB / 376.5 MB, free: 14.04 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001531/0.1209, allocations: 39.58 kB / 376.6 MB, free: 14 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001368/0.1211, allocations: 83.27 kB / 376.7 MB, free: 13.92 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003032/0.1214, allocations: 91.81 kB / 376.8 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003521/0.1218, allocations: 370.4 kB / 377.1 MB, free: 13.46 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002206/0.122, allocations: 100.6 kB / 377.2 MB, free: 13.37 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002088/0.1222, allocations: 135.5 kB / 377.3 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002027/0.1224, allocations: 167.3 kB / 377.5 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.075e-05/0.1225, allocations: 28 kB / 377.5 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.818e-05/0.1225, allocations: 36 kB / 377.6 MB, free: 13.01 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.566e-05/0.1226, allocations: 71.75 kB / 377.6 MB, free: 12.94 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001394/0.1227, allocations: 139.3 kB / 377.8 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003338/0.1231, allocations: 338.9 kB / 378.1 MB, free: 12.47 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.1231, allocations: 4 kB / 378.1 MB, free: 12.46 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1231, allocations: 0 / 378.1 MB, free: 12.46 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.12e-05/0.1231, allocations: 0 / 378.1 MB, free: 12.46 MB / 318.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.001505/0.1246, allocations: 0.6509 MB / 378.8 MB, free: 11.77 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.1247, allocations: 11.97 kB / 378.8 MB, free: 11.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.03e-05/0.1248, allocations: 28.66 kB / 378.8 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003844/0.1252, allocations: 260.7 kB / 379.1 MB, free: 11.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.745e-05/0.1252, allocations: 12.81 kB / 379.1 MB, free: 11.42 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.864e-05/0.1252, allocations: 20.38 kB / 379.1 MB, free: 11.4 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006582/0.1259, allocations: 306.9 kB / 379.4 MB, free: 11.08 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.1259, allocations: 0 / 379.4 MB, free: 11.08 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.538e-05/0.126, allocations: 12 kB / 379.4 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.126, allocations: 4 kB / 379.4 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007725/0.1268, allocations: 269.5 kB / 379.7 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001643/0.1284, allocations: 1.05 MB / 380.7 MB, free: 9.676 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001943/0.1304, allocations: 450.2 kB / 381.2 MB, free: 9.227 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003908/0.1308, allocations: 140.8 kB / 381.3 MB, free: 9.086 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.469e-05/0.1308, allocations: 0 / 381.3 MB, free: 9.086 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.835e-05/0.1308, allocations: 38.56 kB / 381.3 MB, free: 9.039 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.062e-06/0.1308, allocations: 4 kB / 381.3 MB, free: 9.035 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.004782/0.1356, allocations: 1.026 MB / 382.4 MB, free: 7.98 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.88e-05/0.1357, allocations: 55.41 kB / 382.4 MB, free: 7.914 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002125/0.1359, allocations: 212.2 kB / 382.6 MB, free: 7.691 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.783e-05/0.1359, allocations: 29.7 kB / 382.7 MB, free: 7.656 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000116/0.1361, allocations: 152.1 kB / 382.8 MB, free: 7.504 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.798e-05/0.1361, allocations: 59.22 kB / 382.9 MB, free: 7.445 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.557e-05/0.1362, allocations: 33.7 kB / 382.9 MB, free: 7.406 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.1363, allocations: 338.8 kB / 383.2 MB, free: 7.066 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003452/0.1367, allocations: 99.94 kB / 383.3 MB, free: 6.969 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003407/0.137, allocations: 126.7 kB / 383.4 MB, free: 6.84 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006496/0.1377, allocations: 229.7 kB / 383.7 MB, free: 6.609 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.1377, allocations: 4 kB / 383.7 MB, free: 6.605 MB / 318.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002774/0.1405, allocations: 0.6383 MB / 384.3 MB, free: 5.957 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.1405, allocations: 4 kB / 384.3 MB, free: 5.953 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.1405, allocations: 4 kB / 384.3 MB, free: 5.949 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007469/0.1413, allocations: 216.7 kB / 384.5 MB, free: 5.734 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001602/0.1415, allocations: 35.97 kB / 384.6 MB, free: 5.699 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006732/0.1482, allocations: 2.743 MB / 387.3 MB, free: 2.816 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002849/0.1485, allocations: 35.86 kB / 387.3 MB, free: 2.781 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.171e-05/0.1485, allocations: 7.984 kB / 387.4 MB, free: 2.773 MB / 318.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.0001689/0.1487, allocations: 145.7 kB / 387.5 MB, free: 2.621 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.374e-05/0.1488, allocations: 19.81 kB / 387.5 MB, free: 2.602 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.022e-05/0.1488, allocations: 25.52 kB / 387.5 MB, free: 2.574 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.1488, allocations: 4 kB / 387.5 MB, free: 2.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.574e-06/0.1488, allocations: 0 / 387.5 MB, free: 2.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.1489, allocations: 0 / 387.5 MB, free: 2.57 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003733/0.1492, allocations: 325.3 kB / 387.9 MB, free: 2.203 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.1492, allocations: 4 kB / 387.9 MB, free: 2.199 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001493/0.1494, allocations: 27.98 kB / 387.9 MB, free: 2.172 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006266/0.15, allocations: 228.6 kB / 388.1 MB, free: 1.945 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.698e-05/0.1501, allocations: 4 kB / 388.1 MB, free: 1.941 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006447/0.1565, allocations: 2.731 MB / 390.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.1565, allocations: 0 / 390.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003161/0.1597, allocations: 0.8395 MB / 391.7 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.984e-05/0.1598, allocations: 108.9 kB / 391.8 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.003e-05/0.1598, allocations: 7.938 kB / 391.8 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002863/0.1601, allocations: 31.97 kB / 391.8 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.416e-05/0.1602, allocations: 11.92 kB / 391.8 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.664e-05/0.1602, allocations: 4 kB / 391.8 MB, free: 14.03 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001506/0.1604, allocations: 161.6 kB / 392 MB, free: 13.88 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1604, allocations: 4 kB / 392 MB, free: 13.87 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004749/0.1609, allocations: 79.84 kB / 392.1 MB, free: 13.79 MB / 334.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.0001426/0.161, allocations: 99.25 kB / 392.2 MB, free: 13.69 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001634/0.1627, allocations: 450.3 kB / 392.6 MB, free: 13.23 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1627, allocations: 0 / 392.6 MB, free: 13.23 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001043/0.1637, allocations: 330.4 kB / 392.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003496/0.1641, allocations: 44.62 kB / 393 MB, free: 12.86 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001321/0.1654, allocations: 0.5487 MB / 393.5 MB, free: 12.28 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003131/0.1658, allocations: 0.7437 MB / 394.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.064e-05/0.1658, allocations: 21.48 kB / 394.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.172e-05/0.1659, allocations: 15.44 kB / 394.3 MB, free: 11.47 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1659, allocations: 0 / 394.3 MB, free: 11.47 MB / 334.1 MB Notification: Performance of Templates: time 0.009364/0.1753, allocations: 4.949 MB / 399.3 MB, free: 6.512 MB / 334.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)