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.006677/0.006677, allocations: 106.8 kB / 15.74 MB, free: 5.949 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.001217/0.001217, allocations: 189.3 kB / 16.67 MB, free: 5.879 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.5 MB, free: 4.473 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.00116/0.00116, allocations: 50.58 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1061, allocations: 46.63 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003915/0.1101, allocations: 2.653 MB / 375.8 MB, free: 14.63 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001359/0.1115, allocations: 0.7097 MB / 376.5 MB, free: 13.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001229/0.1116, allocations: 7.938 kB / 376.5 MB, free: 13.9 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001638/0.1118, allocations: 47.56 kB / 376.6 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001351/0.1119, allocations: 75.28 kB / 376.7 MB, free: 13.78 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003024/0.1122, allocations: 103.7 kB / 376.8 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003511/0.1126, allocations: 358.5 kB / 377.1 MB, free: 13.33 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002259/0.1128, allocations: 100.6 kB / 377.2 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001956/0.113, allocations: 139.5 kB / 377.4 MB, free: 13.09 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001919/0.1132, allocations: 167.3 kB / 377.5 MB, free: 12.93 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.562e-05/0.1133, allocations: 32 kB / 377.5 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.459e-05/0.1133, allocations: 28 kB / 377.6 MB, free: 12.87 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.565e-05/0.1134, allocations: 67.81 kB / 377.6 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001297/0.1135, allocations: 151.3 kB / 377.8 MB, free: 12.66 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003281/0.1139, allocations: 334.9 kB / 378.1 MB, free: 12.33 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1139, allocations: 0 / 378.1 MB, free: 12.33 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1139, allocations: 0 / 378.1 MB, free: 12.33 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.1139, allocations: 3.938 kB / 378.1 MB, free: 12.32 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.001416/0.1153, allocations: 0.6392 MB / 378.8 MB, free: 11.64 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.1154, allocations: 12.03 kB / 378.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.61e-05/0.1155, allocations: 32.64 kB / 378.8 MB, free: 11.59 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003463/0.1158, allocations: 264.6 kB / 379.1 MB, free: 11.29 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.949e-05/0.1159, allocations: 16.81 kB / 379.1 MB, free: 11.28 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.823e-05/0.1159, allocations: 20.38 kB / 379.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006305/0.1166, allocations: 298.9 kB / 379.4 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.1166, allocations: 0 / 379.4 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.902e-05/0.1166, allocations: 8 kB / 379.4 MB, free: 10.94 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.1166, allocations: 11.98 kB / 379.4 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007219/0.1173, allocations: 265.5 kB / 379.7 MB, free: 10.67 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001642/0.119, allocations: 1.058 MB / 380.7 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001956/0.121, allocations: 438.3 kB / 381.2 MB, free: 9.098 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003761/0.1214, allocations: 148.8 kB / 381.3 MB, free: 8.949 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.773e-05/0.1214, allocations: 4 kB / 381.3 MB, free: 8.945 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.343e-05/0.1214, allocations: 34.56 kB / 381.3 MB, free: 8.902 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.372e-06/0.1214, allocations: 0 / 381.3 MB, free: 8.902 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.004586/0.126, allocations: 1.022 MB / 382.4 MB, free: 7.852 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.764e-05/0.1261, allocations: 59.41 kB / 382.4 MB, free: 7.781 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002035/0.1263, allocations: 216.2 kB / 382.6 MB, free: 7.555 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.616e-05/0.1263, allocations: 25.7 kB / 382.7 MB, free: 7.523 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.809e-05/0.1264, allocations: 160 kB / 382.8 MB, free: 7.363 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.255e-05/0.1265, allocations: 51.28 kB / 382.9 MB, free: 7.312 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.579e-05/0.1266, allocations: 37.69 kB / 382.9 MB, free: 7.27 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.1267, allocations: 330.8 kB / 383.2 MB, free: 6.938 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000333/0.127, allocations: 111.9 kB / 383.3 MB, free: 6.828 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003289/0.1274, allocations: 125.6 kB / 383.5 MB, free: 6.699 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006551/0.128, allocations: 229.7 kB / 383.7 MB, free: 6.469 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.128, allocations: 0 / 383.7 MB, free: 6.469 MB / 318.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002691/0.1307, allocations: 0.6383 MB / 384.3 MB, free: 5.82 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.1308, allocations: 4 kB / 384.3 MB, free: 5.816 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-06/0.1308, allocations: 0 / 384.3 MB, free: 5.816 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007205/0.1315, allocations: 220.6 kB / 384.5 MB, free: 5.598 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001571/0.1317, allocations: 35.92 kB / 384.6 MB, free: 5.562 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006788/0.1385, allocations: 2.743 MB / 387.3 MB, free: 2.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002772/0.1388, allocations: 35.83 kB / 387.3 MB, free: 2.645 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.518e-05/0.1388, allocations: 7.984 kB / 387.4 MB, free: 2.637 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.0001528/0.1389, allocations: 133.8 kB / 387.5 MB, free: 2.496 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.496e-05/0.139, allocations: 19.81 kB / 387.5 MB, free: 2.477 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.477e-05/0.1391, allocations: 29.58 kB / 387.5 MB, free: 2.445 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.1391, allocations: 0 / 387.5 MB, free: 2.445 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.1391, allocations: 0 / 387.5 MB, free: 2.445 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.1391, allocations: 0 / 387.5 MB, free: 2.445 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004179/0.1395, allocations: 329.3 kB / 387.9 MB, free: 2.074 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.1395, allocations: 0 / 387.9 MB, free: 2.074 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001546/0.1397, allocations: 35.92 kB / 387.9 MB, free: 2.039 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000625/0.1403, allocations: 216.7 kB / 388.1 MB, free: 1.824 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.266e-05/0.1404, allocations: 11.98 kB / 388.1 MB, free: 1.812 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006465/0.1468, allocations: 2.739 MB / 390.9 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.1469, allocations: 0 / 390.9 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00312/0.15, allocations: 0.8394 MB / 391.7 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.91e-05/0.1501, allocations: 104.8 kB / 391.8 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.679e-05/0.1501, allocations: 0 / 391.8 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002806/0.1504, allocations: 36.03 kB / 391.8 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.152e-05/0.1505, allocations: 11.98 kB / 391.8 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.671e-05/0.1505, allocations: 4 kB / 391.8 MB, free: 13.9 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001497/0.1506, allocations: 161.6 kB / 392 MB, free: 13.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1506, allocations: 0 / 392 MB, free: 13.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004473/0.1511, allocations: 79.84 kB / 392.1 MB, free: 13.67 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.0001344/0.1512, allocations: 107.2 kB / 392.2 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001561/0.1528, allocations: 450.3 kB / 392.6 MB, free: 13.1 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.1528, allocations: 0 / 392.6 MB, free: 13.1 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001059/0.1539, allocations: 326.4 kB / 392.9 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003882/0.1543, allocations: 36.66 kB / 393 MB, free: 12.73 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001414/0.1557, allocations: 0.5535 MB / 393.5 MB, free: 12.15 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003052/0.1561, allocations: 0.7476 MB / 394.3 MB, free: 11.38 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.552e-05/0.1561, allocations: 13.56 kB / 394.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.226e-05/0.1562, allocations: 19.42 kB / 394.3 MB, free: 11.34 MB / 334.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1562, allocations: 0 / 394.3 MB, free: 11.34 MB / 334.1 MB Notification: Performance of Templates: time 0.009531/0.1657, allocations: 4.964 MB / 399.3 MB, free: 6.371 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)