Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/OpenIPSL 3.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001795/0.001795, allocations: 187 kB / 7.465 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.03/1.03, allocations: 221.4 MB / 229.3 MB, free: 3.355 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008243/0.0008243, allocations: 96.39 kB / 280.1 MB, free: 1.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.3484/0.3484, allocations: 78.11 MB / 409 MB, free: 15.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.618e-06/4.628e-06, allocations: 0 / 484.4 MB, free: 4.555 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2133/0.2133, allocations: 69.34 MB / 0.5407 GB, free: 21.61 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09889/0.3122, allocations: 98.08 MB / 0.6365 GB, free: 6.93 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002005/0.3124, allocations: 79.95 kB / 0.6366 GB, free: 6.852 MB / 458.7 MB Notification: Performance of FrontEnd: time 0.09122/0.4037, allocations: 35.68 MB / 0.6715 GB, free: 2.914 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.125e-05/0.4037, allocations: 24 kB / 0.6715 GB, free: 2.891 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.003844/0.4076, allocations: 1.75 MB / 0.6732 GB, free: 1.082 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.966e-05/0.4076, allocations: 12.03 kB / 0.6732 GB, free: 1.07 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003278/0.4109, allocations: 0.5836 MB / 0.6738 GB, free: 496 kB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1243/0.5352, allocations: 0.7859 MB / 0.6745 GB, free: 142.5 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002132/0.5354, allocations: 233.5 kB / 0.6748 GB, free: 142.3 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.5356, allocations: 51.34 kB / 0.6748 GB, free: 142.3 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001223/0.5368, allocations: 0.8028 MB / 0.6756 GB, free: 142.3 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001159/0.538, allocations: 0.8247 MB / 0.6764 GB, free: 142.2 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.538, allocations: 0 / 0.6764 GB, free: 142.2 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.974e-05/0.5381, allocations: 10.92 kB / 0.6764 GB, free: 142.2 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.262e-05/0.5381, allocations: 15.16 kB / 0.6764 GB, free: 142.2 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005231/0.5433, allocations: 3.741 MB / 0.6801 GB, free: 141.2 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009545/0.5443, allocations: 0.6124 MB / 0.6807 GB, free: 141.2 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006142/0.5449, allocations: 0.5051 MB / 0.6812 GB, free: 141.2 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.537e-05/0.545, allocations: 25.66 kB / 0.6812 GB, free: 141.2 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007583/0.5458, allocations: 0.6317 MB / 0.6818 GB, free: 141.1 MB / 490.7 MB Notification: Performance of pre-optimization done (n=96): time 2.043e-06/0.5458, allocations: 0 / 0.6818 GB, free: 141.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=96): time 0.01133/0.5571, allocations: 4.182 MB / 0.6859 GB, free: 140.9 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.563e-05/0.5572, allocations: 115 kB / 0.686 GB, free: 140.8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007749/0.5579, allocations: 0.808 MB / 0.6868 GB, free: 140.6 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 6.906e-05/0.558, allocations: 25.7 kB / 0.6868 GB, free: 140.6 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.5581, allocations: 320.7 kB / 0.6871 GB, free: 140.5 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002408/0.5584, allocations: 330.5 kB / 0.6874 GB, free: 140.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.677e-05/0.5585, allocations: 3.875 kB / 0.6874 GB, free: 140.3 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 5.546e-05/0.5585, allocations: 348.1 kB / 0.6878 GB, free: 140 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000624/0.5591, allocations: 448.7 kB / 0.6882 GB, free: 140 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006632/0.5598, allocations: 0.5588 MB / 0.6887 GB, free: 139.9 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006802/0.5605, allocations: 490.4 kB / 0.6892 GB, free: 139.9 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.5605, allocations: 3.562 kB / 0.6892 GB, free: 139.9 MB / 490.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.01144/0.572, allocations: 4.2 MB / 0.6933 GB, free: 139.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.073e-05/0.572, allocations: 11.53 kB / 0.6933 GB, free: 139.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.572, allocations: 3.844 kB / 0.6933 GB, free: 139.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005012/0.577, allocations: 1.557 MB / 0.6948 GB, free: 139.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008585/0.5779, allocations: 189.1 kB / 0.695 GB, free: 139.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01218/0.5901, allocations: 6.005 MB / 0.7009 GB, free: 137.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001479/0.5916, allocations: 196.8 kB / 0.7011 GB, free: 137.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.589e-05/0.5917, allocations: 37.77 kB / 0.7011 GB, free: 137.8 MB / 490.7 MB Warning: Assuming fixed start value for the following 4 variables: order4.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real aVRTypeII.firstOrder2.y:VARIABLE(start = aVRTypeII.firstOrder2.y_start ) "Connector of Real output signal" type: Real order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" ) "d-axis transient voltage" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" ) "q-axis transient voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {19 14} Notification: Performance of prepare postOptimizeDAE: time 0.000249/0.5919, allocations: 151.3 kB / 0.7013 GB, free: 137.7 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001694/0.5921, allocations: 126 kB / 0.7014 GB, free: 137.6 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01161/0.6037, allocations: 4.269 MB / 0.7055 GB, free: 137.2 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.027e-05/0.6037, allocations: 10.12 kB / 0.7056 GB, free: 137.2 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.6038, allocations: 6.875 kB / 0.7056 GB, free: 137.2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.6038, allocations: 3.844 kB / 0.7056 GB, free: 137.2 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0127/0.6165, allocations: 5.662 MB / 0.7111 GB, free: 136.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.6165, allocations: 2.062 kB / 0.7111 GB, free: 136.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005614/0.6171, allocations: 101.1 kB / 0.7112 GB, free: 136.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004347/0.6214, allocations: 1.53 MB / 0.7127 GB, free: 136 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.813e-05/0.6215, allocations: 12.75 kB / 0.7127 GB, free: 136 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01134/0.6329, allocations: 7.13 MB / 0.7197 GB, free: 131.7 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.6329, allocations: 4 kB / 0.7197 GB, free: 131.7 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01202/0.6449, allocations: 5.034 MB / 0.7246 GB, free: 130.2 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002391/0.6452, allocations: 217.9 kB / 0.7248 GB, free: 130 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001905/0.6454, allocations: 7.188 kB / 0.7248 GB, free: 130 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00117/0.6465, allocations: 138.5 kB / 0.7249 GB, free: 130 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002833/0.6468, allocations: 115.1 kB / 0.725 GB, free: 130 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.15e-05/0.6469, allocations: 31.59 kB / 0.7251 GB, free: 130 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0006558/0.6476, allocations: 0.6133 MB / 0.7257 GB, free: 129.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00102/0.6486, allocations: 391.1 kB / 0.726 GB, free: 129.6 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(18,25.9%) 14} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002175/0.6488, allocations: 140.6 kB / 0.7262 GB, free: 129.5 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004165/0.653, allocations: 1.937 MB / 0.7281 GB, free: 128.8 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.653, allocations: 4.062 kB / 0.7281 GB, free: 128.8 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003467/0.6565, allocations: 1.478 MB / 0.7295 GB, free: 128.2 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005183/0.657, allocations: 92.25 kB / 0.7296 GB, free: 128.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003416/0.6605, allocations: 1.719 MB / 0.7313 GB, free: 127.4 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007894/0.6613, allocations: 1.192 MB / 0.7324 GB, free: 126.6 MB / 490.7 MB Notification: Performance of SimCode: time 4.51e-07/0.6613, allocations: 0 / 0.7324 GB, free: 126.6 MB / 490.7 MB Notification: Performance of Templates: time 0.02297/0.6842, allocations: 19.34 MB / 0.7513 GB, free: 116.1 MB / 490.7 MB make -j1 -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.makefile (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & ./OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)