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.001772/0.001772, allocations: 95.48 kB / 16.5 MB, free: 6.641 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.001676/0.001676, allocations: 195.1 kB / 17.42 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.574/1.574, allocations: 205.1 MB / 223.3 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.001282/0.001282, allocations: 47.94 kB / 279.3 MB, free: 3.578 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1048, allocations: 46.63 MB / 326 MB, free: 4.879 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004122/0.109, allocations: 2.717 MB / 328.7 MB, free: 2.137 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001361/0.1104, allocations: 0.6983 MB / 329.4 MB, free: 1.43 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002581/0.1107, allocations: 7.938 kB / 329.4 MB, free: 1.422 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000212/0.1109, allocations: 31.75 kB / 329.4 MB, free: 1.391 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002333/0.1112, allocations: 71.47 kB / 329.5 MB, free: 1.32 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003497/0.1116, allocations: 83.83 kB / 329.6 MB, free: 1.238 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004322/0.112, allocations: 342.5 kB / 329.9 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002046/0.1122, allocations: 73.14 kB / 330 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002576/0.1125, allocations: 131.6 kB / 330.1 MB, free: 0.707 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002082/0.1127, allocations: 151.4 kB / 330.2 MB, free: 0.5586 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.534e-05/0.1128, allocations: 20 kB / 330.3 MB, free: 0.5391 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.15e-05/0.1129, allocations: 20 kB / 330.3 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.511e-05/0.1129, allocations: 59.75 kB / 330.3 MB, free: 472 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001594/0.1131, allocations: 131.4 kB / 330.5 MB, free: 340 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000299/0.1134, allocations: 323.1 kB / 330.8 MB, free: 16 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.1134, allocations: 0 / 330.8 MB, free: 16 kB / 270.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1134, allocations: 0 / 330.8 MB, free: 16 kB / 270.1 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.1135, allocations: 3.938 kB / 330.8 MB, free: 12 kB / 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.00155/0.115, allocations: 0.647 MB / 331.4 MB, free: 15.31 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.1151, allocations: 8.031 kB / 331.4 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.594e-05/0.1152, allocations: 32.56 kB / 331.5 MB, free: 15.27 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002962/0.1155, allocations: 252.8 kB / 331.7 MB, free: 14.99 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.868e-05/0.1155, allocations: 16.81 kB / 331.7 MB, free: 14.97 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.152e-05/0.1155, allocations: 16.38 kB / 331.8 MB, free: 14.96 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006811/0.1162, allocations: 306.9 kB / 332.1 MB, free: 14.64 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.1162, allocations: 3.938 kB / 332.1 MB, free: 14.64 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.266e-05/0.1163, allocations: 8 kB / 332.1 MB, free: 14.63 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.1163, allocations: 4 kB / 332.1 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008071/0.1171, allocations: 265.6 kB / 332.3 MB, free: 14.37 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001809/0.1189, allocations: 1.077 MB / 333.4 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002026/0.121, allocations: 430.3 kB / 333.8 MB, free: 12.78 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000403/0.1214, allocations: 148.8 kB / 334 MB, free: 12.63 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.791e-05/0.1214, allocations: 11.97 kB / 334 MB, free: 12.62 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.867e-05/0.1215, allocations: 34.5 kB / 334 MB, free: 12.58 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.513e-06/0.1215, allocations: 4 kB / 334 MB, free: 12.57 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.00519/0.1267, allocations: 1.022 MB / 335 MB, free: 11.52 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.791e-05/0.1267, allocations: 55.41 kB / 335.1 MB, free: 11.46 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002318/0.127, allocations: 224.1 kB / 335.3 MB, free: 11.22 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.785e-05/0.127, allocations: 25.7 kB / 335.3 MB, free: 11.19 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.1271, allocations: 160.1 kB / 335.5 MB, free: 11.03 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.075e-05/0.1272, allocations: 51.27 kB / 335.6 MB, free: 10.98 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.023e-05/0.1273, allocations: 33.7 kB / 335.6 MB, free: 10.94 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.1274, allocations: 330.8 kB / 335.9 MB, free: 10.61 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000347/0.1278, allocations: 99.94 kB / 336 MB, free: 10.51 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000351/0.1281, allocations: 132.8 kB / 336.1 MB, free: 10.38 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006688/0.1288, allocations: 217.6 kB / 336.3 MB, free: 10.16 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.115e-06/0.1288, allocations: 0 / 336.3 MB, free: 10.16 MB / 286.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00297/0.1318, allocations: 0.6422 MB / 337 MB, free: 9.508 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.1318, allocations: 4 kB / 337 MB, free: 9.504 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.1318, allocations: 0 / 337 MB, free: 9.504 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007751/0.1326, allocations: 228.6 kB / 337.2 MB, free: 9.277 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001716/0.1328, allocations: 35.97 kB / 337.3 MB, free: 9.242 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006704/0.1395, allocations: 2.489 MB / 339.7 MB, free: 6.617 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003705/0.1399, allocations: 32.02 kB / 339.8 MB, free: 6.586 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.743e-05/0.14, allocations: 7.984 kB / 339.8 MB, free: 6.578 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.0002318/0.1402, allocations: 137.7 kB / 339.9 MB, free: 6.434 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.1403, allocations: 27.66 kB / 339.9 MB, free: 6.406 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.769e-05/0.1404, allocations: 21.52 kB / 340 MB, free: 6.383 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.1404, allocations: 0 / 340 MB, free: 6.383 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.1405, allocations: 7.938 kB / 340 MB, free: 6.375 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.1405, allocations: 4 kB / 340 MB, free: 6.371 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006238/0.1411, allocations: 321.4 kB / 340.3 MB, free: 6.008 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.1411, allocations: 0 / 340.3 MB, free: 6.008 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002502/0.1414, allocations: 31.92 kB / 340.3 MB, free: 5.977 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009801/0.1424, allocations: 224.7 kB / 340.5 MB, free: 5.754 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.339e-05/0.1424, allocations: 7.984 kB / 340.5 MB, free: 5.746 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006694/0.1491, allocations: 2.482 MB / 343 MB, free: 3.129 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.1492, allocations: 0 / 343 MB, free: 3.129 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003419/0.1526, allocations: 0.8438 MB / 343.9 MB, free: 2.266 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.7e-05/0.1527, allocations: 96.88 kB / 344 MB, free: 2.152 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.558e-05/0.1528, allocations: 16 kB / 344 MB, free: 2.137 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00031/0.1531, allocations: 27.97 kB / 344 MB, free: 2.109 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.331e-05/0.1531, allocations: 11.98 kB / 344 MB, free: 2.098 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.968e-05/0.1532, allocations: 4 kB / 344 MB, free: 2.094 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001672/0.1533, allocations: 161.6 kB / 344.2 MB, free: 1.938 MB / 286.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.1534, allocations: 0 / 344.2 MB, free: 1.938 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004832/0.1538, allocations: 83.84 kB / 344.3 MB, free: 1.855 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.0001531/0.154, allocations: 95.25 kB / 344.4 MB, free: 1.75 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001664/0.1557, allocations: 457.5 kB / 344.8 MB, free: 1.293 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.287e-06/0.1557, allocations: 0 / 344.8 MB, free: 1.293 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001138/0.1568, allocations: 326.5 kB / 345.1 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004143/0.1573, allocations: 32.66 kB / 345.2 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001532/0.1588, allocations: 0.6489 MB / 345.8 MB, free: 268 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004539/0.1593, allocations: 0.7401 MB / 346.5 MB, free: 15.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.35e-05/0.1594, allocations: 17.48 kB / 346.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.06e-05/0.1594, allocations: 15.44 kB / 346.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1595, allocations: 0 / 346.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of Templates: time 0.009265/0.1687, allocations: 4.636 MB / 351.2 MB, free: 10.83 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)