Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_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.TwoArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_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.001935/0.001935, allocations: 187 kB / 7.46 MB, free: 2.516 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.053/1.053, allocations: 221.4 MB / 229.3 MB, free: 3.305 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.0008434/0.0008434, allocations: 100.2 kB / 280.1 MB, free: 1.289 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.3652/0.3652, allocations: 78.11 MB / 409 MB, free: 15.62 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1163/0.4814, allocations: 75.48 MB / 484.5 MB, free: 4.453 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2367/0.7182, allocations: 69.34 MB / 0.5408 GB, free: 21.55 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1013/0.8195, allocations: 101.4 MB / 0.6398 GB, free: 3.516 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001988/0.8198, allocations: 87.95 kB / 0.6399 GB, free: 3.43 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: 893 * Number of variables: 893 Notification: Performance of Generate backend data structure: time 0.4061/1.226, allocations: 104.6 MB / 0.7421 GB, free: 65.86 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/1.226, allocations: 12 kB / 0.7421 GB, free: 65.84 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01714/1.243, allocations: 2.923 MB / 0.745 GB, free: 62.91 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004829/1.248, allocations: 2.279 MB / 0.7472 GB, free: 60.55 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007029/1.249, allocations: 0.883 MB / 0.7481 GB, free: 59.54 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009986/1.25, allocations: 200 kB / 0.7482 GB, free: 59.34 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006811/1.256, allocations: 3.439 MB / 0.7516 GB, free: 55.9 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005945/1.262, allocations: 3.586 MB / 0.7551 GB, free: 52.29 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.101e-05/1.263, allocations: 0 / 0.7551 GB, free: 52.29 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003403/1.263, allocations: 11.98 kB / 0.7551 GB, free: 52.27 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.937e-05/1.263, allocations: 84 kB / 0.7552 GB, free: 52.19 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02767/1.291, allocations: 18.52 MB / 0.7733 GB, free: 32.63 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002974/1.294, allocations: 2.263 MB / 0.7755 GB, free: 30.36 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002518/1.296, allocations: 2.116 MB / 0.7776 GB, free: 28.23 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003718/1.297, allocations: 74.91 kB / 0.7776 GB, free: 28.16 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003188/1.3, allocations: 2.461 MB / 0.78 GB, free: 25.66 MB / 490.7 MB Notification: Performance of pre-optimization done (n=383): time 4.639e-06/1.3, allocations: 0 / 0.78 GB, free: 25.66 MB / 490.7 MB Notification: Performance of matching and sorting (n=383): time 0.0499/1.35, allocations: 18.37 MB / 0.798 GB, free: 7.234 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.361e-05/1.35, allocations: 141.8 kB / 0.7981 GB, free: 7.07 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002993/1.353, allocations: 2.44 MB / 0.8005 GB, free: 4.617 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005958/1.353, allocations: 25.7 kB / 0.8005 GB, free: 4.586 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004408/1.354, allocations: 1.178 MB / 0.8017 GB, free: 3.391 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001727/1.356, allocations: 1.254 MB / 0.8029 GB, free: 2.117 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002811/1.356, allocations: 0 / 0.8029 GB, free: 2.117 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001206/1.356, allocations: 445.8 kB / 0.8033 GB, free: 1.676 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002631/1.359, allocations: 1.765 MB / 0.805 GB, free: 15.9 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003424/1.362, allocations: 2.325 MB / 0.8073 GB, free: 13.38 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003277/1.365, allocations: 1.972 MB / 0.8092 GB, free: 11.4 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-05/1.365, allocations: 4 kB / 0.8092 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of matching and sorting (n=468) (initialization): time 0.05344/1.419, allocations: 18.42 MB / 0.8272 GB, free: 8.934 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/1.419, allocations: 4 kB / 0.8272 GB, free: 8.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.764e-05/1.419, allocations: 16 kB / 0.8272 GB, free: 8.914 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02416/1.443, allocations: 7.192 MB / 0.8343 GB, free: 1.715 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00296/1.446, allocations: 0.5616 MB / 0.8348 GB, free: 1.152 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05419/1.5, allocations: 22.26 MB / 0.8566 GB, free: 10.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005461/1.506, allocations: 0.6724 MB / 0.8572 GB, free: 10.05 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004005/1.506, allocations: 135.9 kB / 0.8573 GB, free: 9.922 MB / 0.5417 GB Warning: Assuming fixed start value for the following 5 variables: order4.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 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: 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 (331): * Single equations (assignments): 328 * 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.0007531/1.507, allocations: 203 kB / 0.8575 GB, free: 9.711 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006921/1.508, allocations: 450.4 kB / 0.858 GB, free: 9.266 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05365/1.561, allocations: 18.81 MB / 0.8763 GB, free: 6.395 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.297e-05/1.561, allocations: 36 kB / 0.8764 GB, free: 6.359 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.406e-05/1.561, allocations: 28 kB / 0.8764 GB, free: 6.332 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.992e-05/1.561, allocations: 15.94 kB / 0.8764 GB, free: 6.316 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2027/1.764, allocations: 23.38 MB / 0.8992 GB, free: 163.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-05/1.764, allocations: 1.688 kB / 0.8992 GB, free: 163.4 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002212/1.766, allocations: 393.3 kB / 0.8996 GB, free: 163.4 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02148/1.788, allocations: 7.278 MB / 0.9067 GB, free: 163.3 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006057/1.788, allocations: 21.58 kB / 0.9067 GB, free: 163.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04749/1.836, allocations: 21.99 MB / 0.9282 GB, free: 160.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/1.836, allocations: 2.297 kB / 0.9282 GB, free: 160.5 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.05496/1.891, allocations: 21.74 MB / 0.9495 GB, free: 158.8 MB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.05725/1.948, allocations: 25.23 MB / 0.9741 GB, free: 145 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00106/1.949, allocations: 0.5502 MB / 0.9746 GB, free: 144.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000705/1.95, allocations: 7.906 kB / 0.9746 GB, free: 144.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003912/1.954, allocations: 485 kB / 0.9751 GB, free: 144.1 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001095/1.955, allocations: 461.2 kB / 0.9755 GB, free: 143.9 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003228/1.955, allocations: 93.31 kB / 0.9756 GB, free: 143.8 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.001959/1.957, allocations: 1.8 MB / 0.9774 GB, free: 142.1 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.003885/1.961, allocations: 1.563 MB / 0.9789 GB, free: 140.6 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order3.delta,order3.w,order3.e1q,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 (247): * Single equations (assignments): 244 * 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 {(100,5.4%) 36} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004341/1.962, allocations: 163.2 kB / 0.9791 GB, free: 140.5 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01745/1.979, allocations: 7.898 MB / 0.9868 GB, free: 133.3 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/1.979, allocations: 0 / 0.9868 GB, free: 133.3 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01518/1.994, allocations: 5.962 MB / 0.9926 GB, free: 128 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001386/1.996, allocations: 251.4 kB / 0.9929 GB, free: 127.8 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01229/2.008, allocations: 5.928 MB / 0.9986 GB, free: 122.4 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002122/2.01, allocations: 2.664 MB / 1.001 GB, free: 120.4 MB / 0.5573 GB Notification: Performance of SimCode: time 5.41e-07/2.01, allocations: 0 / 1.001 GB, free: 120.4 MB / 0.5573 GB (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII.fmu > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe 2>&1)