Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 97.31 kB / 19.73 MB, free: 2.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001686/0.001686, allocations: 218.8 kB / 23.03 MB, free: 4.922 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.521/1.521, allocations: 230.6 MB / 256.8 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1105/0.1105, allocations: 22.94 MB / 336.2 MB, free: 12.43 MB / 270.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_prescribed_P",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_prescribed_P",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002198/0.002198, allocations: 63.89 kB / 469.8 MB, free: 10.24 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3806/0.3828, allocations: 59.29 MB / 0.5167 GB, free: 9.242 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.002969/0.3857, allocations: 1.468 MB / 0.5181 GB, free: 8.582 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001079/0.3868, allocations: 428 kB / 0.5186 GB, free: 8.312 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.2e-05/0.3869, allocations: 3.875 kB / 0.5186 GB, free: 8.312 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 6.062e-05/0.3869, allocations: 6.781 kB / 0.5186 GB, free: 8.309 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002345/0.3872, allocations: 15.27 kB / 0.5186 GB, free: 8.301 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.168e-05/0.3872, allocations: 18.94 kB / 0.5186 GB, free: 8.289 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001596/0.3874, allocations: 64.56 kB / 0.5187 GB, free: 8.266 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001181/0.3875, allocations: 8.609 kB / 0.5187 GB, free: 8.266 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000253/0.3878, allocations: 47.47 kB / 0.5187 GB, free: 8.242 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001337/0.3879, allocations: 32.89 kB / 0.5187 GB, free: 8.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.278e-05/0.3879, allocations: 2.75 kB / 0.5187 GB, free: 8.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.249e-05/0.388, allocations: 7.594 kB / 0.5188 GB, free: 8.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.942e-05/0.388, allocations: 13.62 kB / 0.5188 GB, free: 8.223 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.886e-05/0.388, allocations: 25.06 kB / 0.5188 GB, free: 8.211 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000144/0.3882, allocations: 42.75 kB / 0.5188 GB, free: 8.195 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.605e-06/0.3882, allocations: 0 / 0.5188 GB, free: 8.195 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3882, allocations: 1.344 kB / 0.5188 GB, free: 8.195 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.3882, allocations: 0.7031 kB / 0.5188 GB, free: 8.195 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006754/0.3889, allocations: 309.7 kB / 0.5191 GB, free: 7.906 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.037e-05/0.389, allocations: 14.8 kB / 0.5191 GB, free: 7.902 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.878e-05/0.389, allocations: 6.75 kB / 0.5192 GB, free: 7.898 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.45e-05/0.3891, allocations: 48.14 kB / 0.5192 GB, free: 7.848 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.299e-05/0.3891, allocations: 8.453 kB / 0.5192 GB, free: 7.844 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001785/0.3893, allocations: 120.5 kB / 0.5193 GB, free: 7.711 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.3893, allocations: 8.219 kB / 0.5193 GB, free: 7.707 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.598e-05/0.3894, allocations: 9.656 kB / 0.5193 GB, free: 7.703 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001538/0.3895, allocations: 72.33 kB / 0.5194 GB, free: 7.656 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.3895, allocations: 0.8438 kB / 0.5194 GB, free: 7.656 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.38e-05/0.3895, allocations: 5.344 kB / 0.5194 GB, free: 7.652 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.3895, allocations: 9.219 kB / 0.5194 GB, free: 7.645 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.687e-05/0.3896, allocations: 32.84 kB / 0.5195 GB, free: 7.637 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000584/0.3902, allocations: 283.5 kB / 0.5197 GB, free: 7.375 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000258/0.3905, allocations: 83.48 kB / 0.5198 GB, free: 7.332 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.522e-05/0.3905, allocations: 41.16 kB / 0.5198 GB, free: 7.312 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.511e-05/0.3906, allocations: 2.922 kB / 0.5198 GB, free: 7.312 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.036e-05/0.3906, allocations: 32.59 kB / 0.5199 GB, free: 7.273 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 1.412e-06/0.3906, allocations: 0 / 0.5199 GB, free: 7.273 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.0009636/0.3915, allocations: 360 kB / 0.5202 GB, free: 7.023 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.84e-05/0.3916, allocations: 58.83 kB / 0.5203 GB, free: 6.957 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001311/0.3917, allocations: 124.5 kB / 0.5204 GB, free: 6.848 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/0.3917, allocations: 30.5 kB / 0.5204 GB, free: 6.812 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.417e-05/0.3918, allocations: 97.34 kB / 0.5205 GB, free: 6.719 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.66e-05/0.3918, allocations: 53.92 kB / 0.5206 GB, free: 6.676 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.404e-05/0.3919, allocations: 30.41 kB / 0.5206 GB, free: 6.652 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.286e-05/0.392, allocations: 320.9 kB / 0.5209 GB, free: 6.336 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.561e-05/0.392, allocations: 26.36 kB / 0.5209 GB, free: 6.328 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.16e-05/0.3921, allocations: 47.89 kB / 0.521 GB, free: 6.297 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0004611/0.3925, allocations: 177.5 kB / 0.5211 GB, free: 6.215 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.3926, allocations: 0 / 0.5211 GB, free: 6.215 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002505/0.3928, allocations: 153.5 kB / 0.5213 GB, free: 6.129 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.3928, allocations: 5.953 kB / 0.5213 GB, free: 6.129 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.3928, allocations: 1.156 kB / 0.5213 GB, free: 6.129 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001574/0.393, allocations: 30.94 kB / 0.5213 GB, free: 6.117 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.3931, allocations: 30.38 kB / 0.5214 GB, free: 6.113 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001106/0.3942, allocations: 1.47 MB / 0.5228 GB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.281e-05/0.3943, allocations: 10.59 kB / 0.5228 GB, free: 4.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.043e-05/0.3943, allocations: 4.688 kB / 0.5228 GB, free: 4.66 MB / 382.1 MB Warning: Assuming fixed start value for the following 1 variables: deltag:VARIABLE(unit = \"rad\" fixed = true ) \"generator angle wrt port\" type: Real Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: Pm = Pcmd. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (15): * Single equations (assignments): 14 * 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,3)} Notification: Performance of prepare postOptimizeDAE: time 9.869e-05/0.3944, allocations: 131.1 kB / 0.5229 GB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.186e-05/0.3944, allocations: 9.047 kB / 0.5229 GB, free: 4.523 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.507e-05/0.3944, allocations: 19.19 kB / 0.523 GB, free: 4.512 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.3944, allocations: 5.125 kB / 0.523 GB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.3945, allocations: 1.531 kB / 0.523 GB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.3945, allocations: 0.5156 kB / 0.523 GB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004318/0.3949, allocations: 376.5 kB / 0.5233 GB, free: 4.184 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.3949, allocations: 0 / 0.5233 GB, free: 4.184 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/0.395, allocations: 24.09 kB / 0.5233 GB, free: 4.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001181/0.3951, allocations: 39.08 kB / 0.5234 GB, free: 4.164 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.135e-05/0.3951, allocations: 1.781 kB / 0.5234 GB, free: 4.164 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007598/0.3959, allocations: 1.469 MB / 0.5248 GB, free: 2.723 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3959, allocations: 0.9375 kB / 0.5248 GB, free: 2.723 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002634/0.3961, allocations: 262.3 kB / 0.5251 GB, free: 2.531 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.852e-05/0.3962, allocations: 17.73 kB / 0.5251 GB, free: 2.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.725e-05/0.3962, allocations: 5.672 kB / 0.5251 GB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.312e-05/0.3963, allocations: 1.906 kB / 0.5251 GB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.519e-05/0.3963, allocations: 13.3 kB / 0.5251 GB, free: 2.512 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-06/0.3963, allocations: 2.984 kB / 0.5251 GB, free: 2.512 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.747e-05/0.3964, allocations: 100.6 kB / 0.5252 GB, free: 2.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3964, allocations: 1 kB / 0.5252 GB, free: 2.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000332/0.3967, allocations: 29.81 kB / 0.5252 GB, free: 2.422 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (thetap,deltag,wg) * 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 (10): * Single equations (assignments): 9 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004418/0.3971, allocations: 0.7963 MB / 0.526 GB, free: 1.699 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003493/0.3975, allocations: 194.5 kB / 0.5262 GB, free: 1.559 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3975, allocations: 1.312 kB / 0.5262 GB, free: 1.559 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001463/0.3976, allocations: 143.4 kB / 0.5263 GB, free: 1.441 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002408/0.3979, allocations: 16.59 kB / 0.5264 GB, free: 1.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001998/0.3999, allocations: 1.852 MB / 0.5282 GB, free: 15.9 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.903e-05/0.4, allocations: 88.77 kB / 0.5282 GB, free: 15.82 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.384e-05/0.4, allocations: 7.625 kB / 0.5283 GB, free: 15.82 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.584e-05/0.4001, allocations: 27.09 kB / 0.5283 GB, free: 15.8 MB / 398.1 MB Notification: Performance of SimCode: time 4.8e-07/0.4001, allocations: 0 / 0.5283 GB, free: 15.8 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03879/0.4389, allocations: 2.838 MB / 0.531 GB, free: 15.25 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.19/13.63, allocations: 3.406 kB / 0.5311 GB, free: 15.25 MB / 398.1 MB " [Timeout remaining time 646] (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_prescribed_P_fmu --startTime=0 --stopTime=1 --stepSize=0.002 --timeout=50 --tolerance=1e-06 AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_order0_prescribed_P.fmu > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.52285113907419] Failed to read output from testmodel.py, exit status != 0: 13.808184902067296 13.838838096 13.445383123 Calling exit ...