Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_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.001513/0.001513, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.001862/0.001862, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.45/1.45, allocations: 230.6 MB / 256 MB, free: 7.992 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.1101/0.1101, allocations: 24.12 MB / 336.6 MB, free: 11.45 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_1stOrder_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_prescribed_P",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P,fileNamePrefix="AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_prescribed_P",fmuType="me",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.00226/0.00226, allocations: 71.89 kB / 470.9 MB, free: 8.793 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3114/0.3137, allocations: 59.59 MB / 0.5181 GB, free: 8.984 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.00257/0.3163, allocations: 1.712 MB / 0.5198 GB, free: 7.918 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007137/0.317, allocations: 0.492 MB / 0.5202 GB, free: 7.578 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.399e-05/0.3171, allocations: 0 / 0.5202 GB, free: 7.578 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.074e-05/0.3171, allocations: 16.56 kB / 0.5203 GB, free: 7.57 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001759/0.3173, allocations: 38.19 kB / 0.5203 GB, free: 7.543 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.599e-05/0.3173, allocations: 23.06 kB / 0.5203 GB, free: 7.531 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001759/0.3175, allocations: 122.3 kB / 0.5204 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001128/0.3176, allocations: 26.02 kB / 0.5205 GB, free: 7.453 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001613/0.3178, allocations: 53.31 kB / 0.5205 GB, free: 7.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001116/0.3179, allocations: 59.48 kB / 0.5206 GB, free: 7.398 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.053e-05/0.3179, allocations: 8.844 kB / 0.5206 GB, free: 7.398 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.987e-05/0.3179, allocations: 9.469 kB / 0.5206 GB, free: 7.398 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.27e-05/0.318, allocations: 23.12 kB / 0.5206 GB, free: 7.383 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.195e-05/0.318, allocations: 58.94 kB / 0.5207 GB, free: 7.344 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001547/0.3182, allocations: 100 kB / 0.5208 GB, free: 7.305 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.3182, allocations: 1.125 kB / 0.5208 GB, free: 7.305 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3182, allocations: 0 / 0.5208 GB, free: 7.305 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.3182, allocations: 0 / 0.5208 GB, free: 7.305 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0005473/0.3187, allocations: 348.1 kB / 0.5211 GB, free: 6.996 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.3188, allocations: 16.33 kB / 0.5211 GB, free: 6.992 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.316e-05/0.3188, allocations: 43.97 kB / 0.5212 GB, free: 6.945 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.388e-05/0.3189, allocations: 10.11 kB / 0.5212 GB, free: 6.941 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002172/0.3191, allocations: 158.1 kB / 0.5213 GB, free: 6.785 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/0.3191, allocations: 11.78 kB / 0.5213 GB, free: 6.781 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.256e-05/0.3191, allocations: 10.19 kB / 0.5213 GB, free: 6.777 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001481/0.3193, allocations: 90.23 kB / 0.5214 GB, free: 6.719 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.3193, allocations: 0 / 0.5214 GB, free: 6.719 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.698e-06/0.3193, allocations: 1.5 kB / 0.5214 GB, free: 6.719 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.3193, allocations: 6.125 kB / 0.5214 GB, free: 6.715 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.337e-05/0.3194, allocations: 42.88 kB / 0.5215 GB, free: 6.703 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000538/0.3199, allocations: 360.4 kB / 0.5218 GB, free: 6.41 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000256/0.3202, allocations: 91.92 kB / 0.5219 GB, free: 6.363 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.004e-05/0.3203, allocations: 46.3 kB / 0.5219 GB, free: 6.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.959e-06/0.3203, allocations: 1.188 kB / 0.5219 GB, free: 6.34 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.923e-05/0.3203, allocations: 37.55 kB / 0.522 GB, free: 6.297 MB / 382.1 MB Notification: Performance of pre-optimization done (n=11): time 1.172e-06/0.3203, allocations: 0 / 0.522 GB, free: 6.297 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006704/0.321, allocations: 370.1 kB / 0.5223 GB, free: 6.031 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.983e-05/0.321, allocations: 65.02 kB / 0.5224 GB, free: 5.957 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001251/0.3211, allocations: 157 kB / 0.5225 GB, free: 5.84 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.084e-05/0.3211, allocations: 30.27 kB / 0.5226 GB, free: 5.805 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.923e-05/0.3212, allocations: 108.6 kB / 0.5227 GB, free: 5.703 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.799e-05/0.3212, allocations: 49.5 kB / 0.5227 GB, free: 5.664 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.505e-05/0.3212, allocations: 31.06 kB / 0.5228 GB, free: 5.641 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.94e-05/0.3213, allocations: 329.2 kB / 0.5231 GB, free: 5.316 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.539e-05/0.3213, allocations: 27.52 kB / 0.5231 GB, free: 5.309 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.375e-05/0.3214, allocations: 61.08 kB / 0.5232 GB, free: 5.266 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000419/0.3218, allocations: 187.8 kB / 0.5233 GB, free: 5.172 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.3218, allocations: 1.312 kB / 0.5233 GB, free: 5.172 MB / 382.1 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ G.Pm ; G.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003983/0.3222, allocations: 190 kB / 0.5235 GB, free: 5.066 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.3222, allocations: 9.312 kB / 0.5235 GB, free: 5.062 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.3222, allocations: 5.938 kB / 0.5235 GB, free: 5.059 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001598/0.3224, allocations: 47.75 kB / 0.5236 GB, free: 5.035 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.3225, allocations: 27.36 kB / 0.5236 GB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001499/0.324, allocations: 4.42 MB / 0.5279 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.263e-05/0.3241, allocations: 11.5 kB / 0.5279 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.178e-06/0.3241, allocations: 7.531 kB / 0.5279 GB, free: 0.543 MB / 382.1 MB Warning: Assuming fixed start value for the following 1 variables: G.deltag:VARIABLE(unit = \"rad\" fixed = true ) \"generator angle wrt port\" type: Real 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 8.373e-05/0.3242, allocations: 131.7 kB / 0.5281 GB, free: 424 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.485e-05/0.3242, allocations: 14.25 kB / 0.5281 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.598e-05/0.3242, allocations: 17.86 kB / 0.5281 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.3242, allocations: 1.312 kB / 0.5281 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/0.3242, allocations: 0 / 0.5281 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.3242, allocations: 9.391 kB / 0.5281 GB, free: 400 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004589/0.3247, allocations: 433.5 kB / 0.5285 GB, free: 28 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.3247, allocations: 2.297 kB / 0.5285 GB, free: 28 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001041/0.3248, allocations: 18.45 kB / 0.5285 GB, free: 28 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001202/0.3249, allocations: 35.61 kB / 0.5286 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.3249, allocations: 10.95 kB / 0.5286 GB, free: 8 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001338/0.3263, allocations: 1.51 MB / 0.5301 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3263, allocations: 5.812 kB / 0.5301 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003732/0.3267, allocations: 279.3 kB / 0.5303 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.678e-05/0.3267, allocations: 17.78 kB / 0.5303 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.047e-05/0.3267, allocations: 2.688 kB / 0.5303 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/0.3268, allocations: 1.547 kB / 0.5303 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.832e-05/0.3268, allocations: 16.36 kB / 0.5304 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.913e-06/0.3268, allocations: 3.5 kB / 0.5304 GB, free: 14.3 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001123/0.327, allocations: 118.3 kB / 0.5305 GB, free: 14.21 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.327, allocations: 0 / 0.5305 GB, free: 14.21 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000398/0.3274, allocations: 29.5 kB / 0.5305 GB, free: 14.21 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (G.thetap,G.deltag,G.wg,Gact.y) * 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 (9): * Single equations (assignments): 8 * 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.0007008/0.3281, allocations: 0.8269 MB / 0.5313 GB, free: 13.46 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004574/0.3285, allocations: 318.8 kB / 0.5316 GB, free: 13.19 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3285, allocations: 0 / 0.5316 GB, free: 13.19 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001944/0.3287, allocations: 161.3 kB / 0.5318 GB, free: 13.06 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003051/0.329, allocations: 12.59 kB / 0.5318 GB, free: 13.05 MB / 398.1 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ G.Pcmd ; G.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002811/0.3318, allocations: 2.148 MB / 0.5339 GB, free: 11.35 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003799/0.3322, allocations: 0.7185 MB / 0.5346 GB, free: 10.65 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.718e-05/0.3323, allocations: 8.688 kB / 0.5346 GB, free: 10.65 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.091e-05/0.3323, allocations: 37.25 kB / 0.5346 GB, free: 10.62 MB / 398.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3323, allocations: 0 / 0.5346 GB, free: 10.62 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03836/0.3707, allocations: 3.535 MB / 0.5381 GB, free: 10.08 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.55/13.92, allocations: 7.688 kB / 0.5381 GB, free: 10.08 MB / 398.1 MB " [Timeout remaining time 646] (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_prescribed_P_fmu --startTime=0 --stopTime=1 --stepSize=0.002 --timeout=50 --tolerance=1e-06 AES_AES_ProcessComponents_Electric_Generators_PAport_Generator_1stOrder_prescribed_P.fmu > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.504299979889765] Failed to read output from testmodel.py, exit status != 0: 14.032817181199789 14.049563825 13.728047145 Calling exit ...