Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.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: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) [: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.004464/0.004464, allocations: 179.8 kB / 7.458 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.273/1.273, allocations: 221.4 MB / 229.3 MB, free: 3.039 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.0009976/0.0009978, allocations: 102.9 kB / 280.1 MB, free: 1.332 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4671/0.4671, allocations: 78.93 MB / 409.8 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1459/0.613, allocations: 75.64 MB / 485.5 MB, free: 3.566 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3096/0.9227, allocations: 69.5 MB / 0.542 GB, free: 20.82 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1211/1.044, allocations: 98.36 MB / 0.638 GB, free: 5.578 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002344/1.044, allocations: 79.95 kB / 0.6381 GB, free: 5.5 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 189 * Number of variables: 189 Notification: Performance of Generate backend data structure: time 0.0908/1.135, allocations: 32.54 MB / 0.6699 GB, free: 4.691 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/1.135, allocations: 19.98 kB / 0.6699 GB, free: 4.672 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003548/1.139, allocations: 0.5719 MB / 0.6704 GB, free: 4.098 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001482/1.14, allocations: 0.7703 MB / 0.6712 GB, free: 3.273 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002943/1.14, allocations: 244.2 kB / 0.6714 GB, free: 2.996 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001384/1.14, allocations: 44 kB / 0.6715 GB, free: 2.953 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001521/1.142, allocations: 0.7967 MB / 0.6722 GB, free: 2.156 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00152/1.144, allocations: 0.829 MB / 0.6731 GB, free: 1.316 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/1.144, allocations: 0 / 0.6731 GB, free: 1.316 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-05/1.144, allocations: 0 / 0.6731 GB, free: 1.316 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.225e-05/1.144, allocations: 23.91 kB / 0.6731 GB, free: 1.293 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2038/1.347, allocations: 3.744 MB / 0.6767 GB, free: 140.4 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00107/1.349, allocations: 0.605 MB / 0.6773 GB, free: 140.4 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006647/1.349, allocations: 0.5035 MB / 0.6778 GB, free: 140.4 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001077/1.349, allocations: 22.88 kB / 0.6778 GB, free: 140.4 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008776/1.35, allocations: 0.6282 MB / 0.6784 GB, free: 140.3 MB / 490.7 MB Notification: Performance of pre-optimization done (n=95): time 2.705e-06/1.35, allocations: 3.875 kB / 0.6785 GB, free: 140.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=95): time 0.01194/1.362, allocations: 4.173 MB / 0.6825 GB, free: 140.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.451e-05/1.362, allocations: 127.8 kB / 0.6827 GB, free: 140 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009783/1.363, allocations: 0.8153 MB / 0.6834 GB, free: 139.9 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001152/1.363, allocations: 25.7 kB / 0.6835 GB, free: 139.9 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001305/1.364, allocations: 318.7 kB / 0.6838 GB, free: 139.7 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000305/1.364, allocations: 330.7 kB / 0.6841 GB, free: 139.5 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.712e-05/1.364, allocations: 3.781 kB / 0.6841 GB, free: 139.5 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 5.91e-05/1.364, allocations: 336.1 kB / 0.6844 GB, free: 139.2 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006516/1.365, allocations: 444.1 kB / 0.6848 GB, free: 139.2 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006858/1.365, allocations: 0.5525 MB / 0.6854 GB, free: 139.1 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007012/1.366, allocations: 491.6 kB / 0.6858 GB, free: 139.1 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/1.366, allocations: 0 / 0.6858 GB, free: 139.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.01172/1.378, allocations: 4.202 MB / 0.69 GB, free: 138.7 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/1.378, allocations: 3.531 kB / 0.69 GB, free: 138.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/1.378, allocations: 3.312 kB / 0.69 GB, free: 138.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005322/1.383, allocations: 1.57 MB / 0.6915 GB, free: 138.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009921/1.384, allocations: 182.9 kB / 0.6917 GB, free: 138.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01275/1.397, allocations: 6.052 MB / 0.6976 GB, free: 137.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001727/1.399, allocations: 187.7 kB / 0.6978 GB, free: 137.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001142/1.399, allocations: 41.09 kB / 0.6978 GB, free: 137.1 MB / 490.7 MB Warning: Assuming fixed start value for the following 4 variables: order3.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order2.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 order3.e1q:VARIABLE(start = order3.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 (94): * Single equations (assignments): 91 * 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.000353/1.399, allocations: 163 kB / 0.6979 GB, free: 137 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002068/1.399, allocations: 122.7 kB / 0.6981 GB, free: 136.9 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01287/1.412, allocations: 4.27 MB / 0.7022 GB, free: 136.5 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.103e-05/1.412, allocations: 9.562 kB / 0.7022 GB, free: 136.5 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.798e-05/1.412, allocations: 7.656 kB / 0.7023 GB, free: 136.5 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-05/1.412, allocations: 6.938 kB / 0.7023 GB, free: 136.5 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01562/1.428, allocations: 5.654 MB / 0.7078 GB, free: 135.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/1.428, allocations: 0 / 0.7078 GB, free: 135.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000592/1.429, allocations: 103.1 kB / 0.7079 GB, free: 135.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00478/1.433, allocations: 1.545 MB / 0.7094 GB, free: 135.6 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001202/1.434, allocations: 12.64 kB / 0.7094 GB, free: 135.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01276/1.446, allocations: 7.102 MB / 0.7163 GB, free: 132.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.043e-06/1.446, allocations: 2.906 kB / 0.7163 GB, free: 132.2 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01333/1.46, allocations: 5.016 MB / 0.7212 GB, free: 130.8 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01487/1.475, allocations: 6.122 MB / 0.7272 GB, free: 128.6 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005764/1.475, allocations: 219.2 kB / 0.7274 GB, free: 128.4 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003629/1.476, allocations: 3.141 kB / 0.7274 GB, free: 128.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001407/1.477, allocations: 146.5 kB / 0.7276 GB, free: 128.4 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003691/1.477, allocations: 110 kB / 0.7277 GB, free: 128.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001119/1.478, allocations: 30.53 kB / 0.7277 GB, free: 128.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0009759/1.479, allocations: 0.6201 MB / 0.7283 GB, free: 128.1 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002051/1.481, allocations: 392.2 kB / 0.7287 GB, free: 128.1 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (order2.delta,order2.w,order3.delta,order3.w,order3.e1q,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 (63): * Single equations (assignments): 60 * 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 {(20,23.0%) 12} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002738/1.481, allocations: 140.8 kB / 0.7288 GB, free: 128 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004906/1.486, allocations: 1.928 MB / 0.7307 GB, free: 127.2 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/1.486, allocations: 0 / 0.7307 GB, free: 127.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004011/1.49, allocations: 1.505 MB / 0.7322 GB, free: 126.6 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008376/1.491, allocations: 86.03 kB / 0.7322 GB, free: 126.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005456/1.496, allocations: 1.679 MB / 0.7339 GB, free: 125.2 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00146/1.498, allocations: 1.207 MB / 0.7351 GB, free: 124.2 MB / 490.7 MB Notification: Performance of SimCode: time 1.853e-06/1.498, allocations: 0 / 0.7351 GB, free: 124.2 MB / 490.7 MB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe 2>&1)