Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_TwoArea_FifthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_TwoArea_FifthOrder_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 3.2.3+maint.om/package.mo): time 0.003271/0.003271, allocations: 180.8 kB / 7.459 MB, free: 2.164 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.286/1.286, allocations: 205.2 MB / 213.1 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008965/0.0008965, allocations: 87.88 kB / 261.1 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.0689/0.0689, allocations: 12.19 MB / 321.2 MB, free: 1.309 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.2744/0.2744, allocations: 78.06 MB / 449.9 MB, free: 3.668 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2832/0.5577, allocations: 76.09 MB / 0.5137 GB, free: 30.32 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.6969, allocations: 69.23 MB / 0.5813 GB, free: 9.191 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3874/1.084, allocations: 103.4 MB / 0.6822 GB, free: 5.723 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002133/1.085, allocations: 79.94 kB / 0.6823 GB, free: 5.68 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 894 * Number of variables: 894 Notification: Performance of Generate backend data structure: time 0.2683/1.353, allocations: 102.5 MB / 0.7824 GB, free: 9.855 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/1.353, allocations: 15.94 kB / 0.7824 GB, free: 9.84 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01975/1.373, allocations: 2.931 MB / 0.7852 GB, free: 6.898 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006357/1.379, allocations: 2.261 MB / 0.7874 GB, free: 4.562 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001015/1.38, allocations: 0.8714 MB / 0.7883 GB, free: 3.555 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001402/1.382, allocations: 208 kB / 0.7885 GB, free: 3.352 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008916/1.391, allocations: 3.439 MB / 0.7918 GB, free: 15.91 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007647/1.398, allocations: 3.606 MB / 0.7954 GB, free: 12.27 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.912e-05/1.398, allocations: 0 / 0.7954 GB, free: 12.27 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003541/1.399, allocations: 7.906 kB / 0.7954 GB, free: 12.27 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.411e-05/1.399, allocations: 84 kB / 0.7955 GB, free: 12.18 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04212/1.441, allocations: 18.58 MB / 0.8136 GB, free: 8.516 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005056/1.446, allocations: 2.271 MB / 0.8158 GB, free: 6.234 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004408/1.45, allocations: 2.12 MB / 0.8179 GB, free: 4.109 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005384/1.451, allocations: 78.92 kB / 0.818 GB, free: 4.031 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005036/1.456, allocations: 2.485 MB / 0.8204 GB, free: 1.508 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=384): time 6.202e-06/1.456, allocations: 0 / 0.8204 GB, free: 1.508 MB / 0.5417 GB Notification: Performance of matching and sorting (n=384): time 0.05855/1.515, allocations: 18.4 MB / 0.8384 GB, free: 15.05 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.034e-05/1.515, allocations: 145.9 kB / 0.8385 GB, free: 14.88 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004919/1.52, allocations: 2.472 MB / 0.8409 GB, free: 12.39 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.001203/1.521, allocations: 29.64 kB / 0.8409 GB, free: 12.36 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000853/1.522, allocations: 1.182 MB / 0.8421 GB, free: 11.16 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.002849/1.525, allocations: 1.258 MB / 0.8433 GB, free: 9.883 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003066/1.525, allocations: 0 / 0.8433 GB, free: 9.883 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002751/1.525, allocations: 441.8 kB / 0.8437 GB, free: 9.445 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003371/1.529, allocations: 1.784 MB / 0.8455 GB, free: 7.66 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003565/1.532, allocations: 2.33 MB / 0.8478 GB, free: 5.137 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003663/1.536, allocations: 1.972 MB / 0.8497 GB, free: 3.152 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.607e-05/1.536, allocations: 8 kB / 0.8497 GB, free: 3.145 MB / 0.573 GB Notification: Performance of matching and sorting (n=470) (initialization): time 0.2486/1.784, allocations: 18.44 MB / 0.8677 GB, free: 186.2 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/1.785, allocations: 6.062 kB / 0.8677 GB, free: 186.2 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.74e-05/1.785, allocations: 20.62 kB / 0.8677 GB, free: 186.2 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02412/1.809, allocations: 7.191 MB / 0.8747 GB, free: 186.1 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003387/1.812, allocations: 0.578 MB / 0.8753 GB, free: 186.1 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05515/1.867, allocations: 22.24 MB / 0.897 GB, free: 184.1 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005983/1.873, allocations: 0.6689 MB / 0.8977 GB, free: 184 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005941/1.874, allocations: 135.2 kB / 0.8978 GB, free: 184 MB / 0.573 GB Warning: Assuming fixed start value for the following 5 variables: order5.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order3.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 order5.e2d:VARIABLE(start = order5.e2d0 unit = "1" ) "d-axis sub-transient voltage" type: Real order5.e2q:VARIABLE(start = order5.e2q0 unit = "1" ) "q-axis sub-transient voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * 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 (333): * Single equations (assignments): 330 * 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 {93 45} Notification: Performance of prepare postOptimizeDAE: time 0.000828/1.875, allocations: 203.5 kB / 0.898 GB, free: 183.8 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009464/1.876, allocations: 458.5 kB / 0.8984 GB, free: 183.6 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0532/1.929, allocations: 18.82 MB / 0.9168 GB, free: 182.2 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.84e-05/1.929, allocations: 36.5 kB / 0.9169 GB, free: 182.2 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.427e-05/1.929, allocations: 29.75 kB / 0.9169 GB, free: 182.2 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001009/1.929, allocations: 21.84 kB / 0.9169 GB, free: 182.2 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0618/1.991, allocations: 23.42 MB / 0.9398 GB, free: 169.7 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.004e-05/1.991, allocations: 0 / 0.9398 GB, free: 169.7 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002725/1.994, allocations: 388.8 kB / 0.9402 GB, free: 169.4 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02325/2.017, allocations: 7.251 MB / 0.9472 GB, free: 163.7 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001118/2.018, allocations: 22 kB / 0.9473 GB, free: 163.7 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04989/2.068, allocations: 21.97 MB / 0.9687 GB, free: 144 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/2.068, allocations: 0 / 0.9687 GB, free: 144 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.05711/2.125, allocations: 21.78 MB / 0.99 GB, free: 126 MB / 0.573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.06285/2.188, allocations: 25.29 MB / 1.015 GB, free: 104.5 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00216/2.19, allocations: 0.5548 MB / 1.015 GB, free: 104 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00213/2.193, allocations: 4 kB / 1.015 GB, free: 104 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005295/2.198, allocations: 489.5 kB / 1.016 GB, free: 103.6 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001606/2.2, allocations: 458.5 kB / 1.016 GB, free: 103.3 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003886/2.2, allocations: 103.8 kB / 1.016 GB, free: 103.2 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.002919/2.203, allocations: 1.821 MB / 1.018 GB, free: 101.6 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.006999/2.21, allocations: 1.576 MB / 1.02 GB, free: 100.1 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 12 (order3.delta,order3.w,order3.e1q,order5.delta,order5.w,order5.e1q,order5.e2q,order5.e2d,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 (248): * Single equations (assignments): 245 * 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 {(98,5.5%) 38} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007033/2.211, allocations: 149 kB / 1.02 GB, free: 99.95 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.02076/2.231, allocations: 7.921 MB / 1.027 GB, free: 92.72 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 8.716e-06/2.231, allocations: 1.438 kB / 1.027 GB, free: 92.72 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01844/2.25, allocations: 5.931 MB / 1.033 GB, free: 87.22 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003593/2.253, allocations: 242.1 kB / 1.033 GB, free: 86.98 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01644/2.27, allocations: 6.043 MB / 1.039 GB, free: 80.92 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002437/2.272, allocations: 2.696 MB / 1.042 GB, free: 78.2 MB / 0.573 GB Notification: Performance of SimCode: time 9.12e-07/2.272, allocations: 0 / 1.042 GB, free: 78.2 MB / 0.573 GB (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_TwoArea_FifthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_TwoArea_FifthOrder_AVRII.fmu > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe 2>&1)