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.0008341/0.0008337, allocations: 94.56 kB / 16.65 MB, free: 6.535 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.0009024/0.0009028, allocations: 174.6 kB / 17.56 MB, free: 6.184 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.666/1.666, allocations: 205.4 MB / 223.7 MB, free: 13.07 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.0004759/0.000476, allocations: 12 kB / 280.7 MB, free: 3.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1174, allocations: 47.59 MB / 328.3 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.002965/0.1204, allocations: 2.347 MB / 330.7 MB, free: 1.387 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001201/0.1216, allocations: 0.6905 MB / 331.4 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001281/0.1218, allocations: 11.94 kB / 331.4 MB, free: 0.6758 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000133/0.1219, allocations: 31.77 kB / 331.4 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001319/0.122, allocations: 59.47 kB / 331.5 MB, free: 0.5859 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000282/0.1223, allocations: 87.83 kB / 331.5 MB, free: 0.5 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003628/0.1227, allocations: 350.5 kB / 331.9 MB, free: 160 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001776/0.1229, allocations: 73.14 kB / 332 MB, free: 92 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002107/0.1231, allocations: 119.6 kB / 332.1 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001794/0.1233, allocations: 147.4 kB / 332.2 MB, free: 15.83 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.16e-05/0.1233, allocations: 16 kB / 332.2 MB, free: 15.81 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.745e-05/0.1234, allocations: 16 kB / 332.2 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.62e-05/0.1234, allocations: 47.77 kB / 332.3 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001373/0.1236, allocations: 157.1 kB / 332.4 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003052/0.1239, allocations: 315 kB / 332.8 MB, free: 15.28 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1239, allocations: 0 / 332.8 MB, free: 15.28 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.1239, allocations: 4 kB / 332.8 MB, free: 15.28 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.501e-06/0.1239, allocations: 3.938 kB / 332.8 MB, free: 15.27 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.00136/0.1253, allocations: 0.616 MB / 333.4 MB, free: 14.61 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.1253, allocations: 8.031 kB / 333.4 MB, free: 14.6 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.017e-05/0.1254, allocations: 24.66 kB / 333.4 MB, free: 14.57 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003049/0.1257, allocations: 260.7 kB / 333.7 MB, free: 14.28 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.449e-05/0.1258, allocations: 12.81 kB / 333.7 MB, free: 14.27 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.373e-05/0.1258, allocations: 24.38 kB / 333.7 MB, free: 14.24 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006745/0.1265, allocations: 310.9 kB / 334 MB, free: 13.92 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.1265, allocations: 3.938 kB / 334 MB, free: 13.92 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.146e-05/0.1266, allocations: 7.938 kB / 334 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.1266, allocations: 8 kB / 334 MB, free: 13.9 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007921/0.1274, allocations: 289.6 kB / 334.3 MB, free: 13.62 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00166/0.1291, allocations: 1.073 MB / 335.4 MB, free: 12.47 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00192/0.131, allocations: 482.3 kB / 335.9 MB, free: 11.99 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004082/0.1314, allocations: 164.8 kB / 336 MB, free: 11.82 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.664e-05/0.1315, allocations: 3.984 kB / 336 MB, free: 11.82 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.611e-05/0.1315, allocations: 38.5 kB / 336.1 MB, free: 11.77 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.252e-06/0.1315, allocations: 0 / 336.1 MB, free: 11.77 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.005053/0.1366, allocations: 1.128 MB / 337.2 MB, free: 10.62 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.927e-05/0.1366, allocations: 55.41 kB / 337.2 MB, free: 10.55 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002363/0.1369, allocations: 216.2 kB / 337.4 MB, free: 10.32 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.165e-05/0.1369, allocations: 29.7 kB / 337.5 MB, free: 10.29 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001122/0.137, allocations: 164 kB / 337.6 MB, free: 10.12 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.399e-05/0.1371, allocations: 47.34 kB / 337.7 MB, free: 10.08 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.712e-05/0.1371, allocations: 17.72 kB / 337.7 MB, free: 10.05 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.1373, allocations: 338.8 kB / 338 MB, free: 9.715 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003468/0.1376, allocations: 107.9 kB / 338.1 MB, free: 9.609 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003446/0.138, allocations: 133.6 kB / 338.3 MB, free: 9.473 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006948/0.1387, allocations: 245.6 kB / 338.5 MB, free: 9.227 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.1387, allocations: 0 / 338.5 MB, free: 9.227 MB / 286.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00291/0.1416, allocations: 0.6994 MB / 339.2 MB, free: 8.52 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.1416, allocations: 4 kB / 339.2 MB, free: 8.516 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.1417, allocations: 0 / 339.2 MB, free: 8.516 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007344/0.1424, allocations: 236.6 kB / 339.4 MB, free: 8.281 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001765/0.1426, allocations: 39.97 kB / 339.5 MB, free: 8.242 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006483/0.1491, allocations: 2.611 MB / 342.1 MB, free: 5.496 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003186/0.1494, allocations: 39.88 kB / 342.1 MB, free: 5.457 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.898e-05/0.1494, allocations: 8.062 kB / 342.1 MB, free: 5.449 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.0001454/0.1496, allocations: 133.7 kB / 342.3 MB, free: 5.309 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.127e-05/0.1496, allocations: 19.75 kB / 342.3 MB, free: 5.289 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.075e-05/0.1497, allocations: 29.52 kB / 342.3 MB, free: 5.258 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.1497, allocations: 3.938 kB / 342.3 MB, free: 5.254 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.1497, allocations: 3.938 kB / 342.3 MB, free: 5.25 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.1497, allocations: 0 / 342.3 MB, free: 5.25 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004482/0.1502, allocations: 329.3 kB / 342.6 MB, free: 4.879 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.1502, allocations: 4 kB / 342.7 MB, free: 4.875 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001545/0.1504, allocations: 35.91 kB / 342.7 MB, free: 4.84 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006432/0.151, allocations: 232.7 kB / 342.9 MB, free: 4.609 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.934e-05/0.151, allocations: 4 kB / 342.9 MB, free: 4.605 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006101/0.1572, allocations: 2.599 MB / 345.5 MB, free: 1.871 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1572, allocations: 0 / 345.5 MB, free: 1.871 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003213/0.1604, allocations: 0.9096 MB / 346.4 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.507e-05/0.1605, allocations: 104.9 kB / 346.5 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.078e-05/0.1605, allocations: 7.938 kB / 346.5 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002805/0.1608, allocations: 39.97 kB / 346.6 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.755e-05/0.1609, allocations: 7.984 kB / 346.6 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.77e-05/0.1609, allocations: 4 kB / 346.6 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001458/0.161, allocations: 165.6 kB / 346.7 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.161, allocations: 0 / 346.7 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004441/0.1615, allocations: 79.84 kB / 346.8 MB, free: 0.5234 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.0001522/0.1617, allocations: 99.25 kB / 346.9 MB, free: 424 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001569/0.1632, allocations: 482.3 kB / 347.4 MB, free: 15.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.1632, allocations: 0 / 347.4 MB, free: 15.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001069/0.1643, allocations: 355.2 kB / 347.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004031/0.1647, allocations: 28.64 kB / 347.8 MB, free: 15.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001403/0.1662, allocations: 0.6987 MB / 348.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004067/0.1666, allocations: 0.7479 MB / 349.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.358e-05/0.1667, allocations: 13.55 kB / 349.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.617e-05/0.1667, allocations: 11.44 kB / 349.2 MB, free: 14.03 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1667, allocations: 4 kB / 349.2 MB, free: 14.03 MB / 302.1 MB Notification: Performance of Templates: time 0.008919/0.1756, allocations: 4.595 MB / 353.8 MB, free: 9.438 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)