Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.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.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009197/0.0009197, allocations: 176.8 kB / 15.42 MB, free: 6.207 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 222.8 MB / 239 MB, free: 80 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007715/0.0007716, allocations: 81.75 kB / 289.8 MB, free: 4.488 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.3033/0.3033, allocations: 78.43 MB / 418.9 MB, free: 60 kB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003374/0.0003374, allocations: 12.53 kB / 498.5 MB, free: 35.38 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3071/0.3074, allocations: 68.73 MB / 0.554 GB, free: 10.45 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.005881/0.3133, allocations: 6.505 MB / 0.5603 GB, free: 6.152 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003361/0.3167, allocations: 1.906 MB / 0.5622 GB, free: 4.797 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009036/0.3176, allocations: 10.41 kB / 0.5622 GB, free: 4.797 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005492/0.3182, allocations: 168.6 kB / 0.5623 GB, free: 4.727 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001779/0.32, allocations: 0.6772 MB / 0.563 GB, free: 4.285 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation order4.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001181/0.3212, allocations: 0.5429 MB / 0.5635 GB, free: 3.996 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001363/0.3226, allocations: 1.311 MB / 0.5648 GB, free: 3.355 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004066/0.323, allocations: 255.7 kB / 0.5651 GB, free: 3.23 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007271/0.3237, allocations: 0.518 MB / 0.5656 GB, free: 2.992 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000749/0.3245, allocations: 0.6916 MB / 0.5662 GB, free: 2.684 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001347/0.3246, allocations: 54.31 kB / 0.5663 GB, free: 2.684 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004505/0.3251, allocations: 187.2 kB / 0.5665 GB, free: 2.641 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001848/0.3253, allocations: 238.4 kB / 0.5667 GB, free: 2.5 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003947/0.3257, allocations: 0.5527 MB / 0.5672 GB, free: 2.145 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001452/0.3272, allocations: 1.404 MB / 0.5686 GB, free: 1.609 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.3272, allocations: 0 / 0.5686 GB, free: 1.609 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.3272, allocations: 0 / 0.5686 GB, free: 1.609 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.425e-05/0.3272, allocations: 5.375 kB / 0.5686 GB, free: 1.605 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.007185/0.3344, allocations: 2.242 MB / 0.5708 GB, free: 0.5977 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.3344, allocations: 13.88 kB / 0.5708 GB, free: 0.5938 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001882/0.3346, allocations: 127.5 kB / 0.5709 GB, free: 0.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004826/0.3395, allocations: 0.7551 MB / 0.5717 GB, free: 368 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001268/0.3408, allocations: 0.7982 MB / 0.5725 GB, free: 15.79 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002636/0.341, allocations: 255.2 kB / 0.5727 GB, free: 15.57 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001553/0.3412, allocations: 78.41 kB / 0.5728 GB, free: 15.55 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002358/0.3436, allocations: 1.173 MB / 0.5739 GB, free: 15.08 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.3436, allocations: 5.062 kB / 0.5739 GB, free: 15.08 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.522e-05/0.3437, allocations: 30.12 kB / 0.574 GB, free: 15.05 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.51e-05/0.3437, allocations: 17.94 kB / 0.574 GB, free: 15.05 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001914/0.3456, allocations: 0.9468 MB / 0.5749 GB, free: 14.75 MB / 394.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0057/0.3513, allocations: 3.544 MB / 0.5784 GB, free: 12 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0072/0.3585, allocations: 2.31 MB / 0.5806 GB, free: 10.73 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001349/0.3599, allocations: 0.6588 MB / 0.5813 GB, free: 10.39 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001099/0.36, allocations: 18.94 kB / 0.5813 GB, free: 10.38 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.685e-05/0.3601, allocations: 47.88 kB / 0.5813 GB, free: 10.33 MB / 394.7 MB Notification: Performance of pre-optimization done (n=92): time 2.585e-06/0.3601, allocations: 0 / 0.5813 GB, free: 10.33 MB / 394.7 MB Notification: Performance of matching and sorting (n=92): time 0.02557/0.3856, allocations: 6.749 MB / 0.5879 GB, free: 6.887 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.796e-05/0.3858, allocations: 94.08 kB / 0.588 GB, free: 6.789 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001397/0.3872, allocations: 0.9616 MB / 0.5889 GB, free: 6.238 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001679/0.3873, allocations: 41.3 kB / 0.589 GB, free: 6.195 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003188/0.3877, allocations: 462.9 kB / 0.5894 GB, free: 5.789 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000324/0.388, allocations: 312.6 kB / 0.5897 GB, free: 5.52 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001825/0.3882, allocations: 135.9 kB / 0.5899 GB, free: 5.43 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.429e-05/0.3883, allocations: 301.1 kB / 0.5901 GB, free: 5.133 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00138/0.3897, allocations: 0.7018 MB / 0.5908 GB, free: 4.777 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001526/0.3912, allocations: 0.9182 MB / 0.5917 GB, free: 4.133 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02047/0.4117, allocations: 5.067 MB / 0.5967 GB, free: 14.99 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.676e-06/0.4117, allocations: 0 / 0.5967 GB, free: 14.99 MB / 410.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.0121/0.4238, allocations: 4.141 MB / 0.6007 GB, free: 10.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.782e-05/0.4239, allocations: 8 kB / 0.6007 GB, free: 10.83 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/0.4239, allocations: 4 kB / 0.6007 GB, free: 10.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004972/0.4289, allocations: 1.511 MB / 0.6022 GB, free: 9.309 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001187/0.4301, allocations: 263.6 kB / 0.6025 GB, free: 9.051 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01653/0.4466, allocations: 7.617 MB / 0.6099 GB, free: 1.289 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001633/0.4483, allocations: 182.8 kB / 0.6101 GB, free: 1.109 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001065/0.4484, allocations: 51.98 kB / 0.6101 GB, free: 1.059 MB / 410.7 MB Warning: Assuming fixed start value for the following 4 variables: order4.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vf,aVRTypeII.vr2,aVRTypeII.vr1,aVRTypeII.vm) * Top-level inputs: 0 Notification: Strong component statistics for initialization (151): * Single equations (assignments): 150 * 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): 1 system {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005657/0.449, allocations: 261.2 kB / 0.6104 GB, free: 0.7969 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008938/0.4499, allocations: 340.8 kB / 0.6107 GB, free: 464 kB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01078/0.4607, allocations: 3.588 MB / 0.6142 GB, free: 12.84 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/0.4607, allocations: 11.94 kB / 0.6142 GB, free: 12.83 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.4607, allocations: 12 kB / 0.6142 GB, free: 12.82 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.512e-05/0.4607, allocations: 3.984 kB / 0.6142 GB, free: 12.82 MB / 426.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01316/0.4739, allocations: 5.13 MB / 0.6192 GB, free: 7.582 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-06/0.4739, allocations: 4 kB / 0.6192 GB, free: 7.578 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005455/0.4745, allocations: 103.9 kB / 0.6193 GB, free: 7.477 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005115/0.4796, allocations: 1.582 MB / 0.6209 GB, free: 5.887 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.974e-05/0.4797, allocations: 23.94 kB / 0.6209 GB, free: 5.863 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01718/0.4969, allocations: 9.901 MB / 0.6306 GB, free: 11.62 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.4969, allocations: 0 / 0.6306 GB, free: 11.62 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01346/0.5104, allocations: 4.597 MB / 0.6351 GB, free: 7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004181/0.5109, allocations: 211.5 kB / 0.6353 GB, free: 6.773 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001543/0.511, allocations: 16 kB / 0.6353 GB, free: 6.758 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009346/0.512, allocations: 87.91 kB / 0.6354 GB, free: 6.672 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004911/0.5125, allocations: 180.6 kB / 0.6355 GB, free: 6.496 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.557e-05/0.5125, allocations: 20 kB / 0.6355 GB, free: 6.477 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007621/0.5133, allocations: 0.6473 MB / 0.6362 GB, free: 5.82 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5133, allocations: 0 / 0.6362 GB, free: 5.82 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001278/0.5146, allocations: 443.6 kB / 0.6366 GB, free: 5.387 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vm,aVRTypeII.vr1,aVRTypeII.vr2,aVRTypeII.vf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 59 * 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 {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01379/0.5284, allocations: 5.203 MB / 0.6417 GB, free: 144 kB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005512/0.5339, allocations: 2.281 MB / 0.6439 GB, free: 13.84 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.534, allocations: 448 / 0.6439 GB, free: 13.84 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003626/0.5376, allocations: 1.317 MB / 0.6452 GB, free: 12.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001538/0.5391, allocations: 346.9 kB / 0.6455 GB, free: 12.16 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03503/0.5742, allocations: 16.02 MB / 0.6612 GB, free: 11.65 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005566/0.5748, allocations: 1.069 MB / 0.6622 GB, free: 10.55 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.000441/0.5752, allocations: 99.34 kB / 0.6623 GB, free: 10.45 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005103/0.5758, allocations: 438.3 kB / 0.6627 GB, free: 10.03 MB / 474.7 MB Notification: Performance of SimCode: time 5.41e-07/0.5758, allocations: 0 / 0.6627 GB, free: 10.03 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04464/0.6204, allocations: 28.51 MB / 0.6906 GB, free: 13.75 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001845/0.6206, allocations: 261.8 kB / 0.6908 GB, free: 13.39 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.757/3.378, allocations: 3.375 kB / 0.6908 GB, free: 13.39 MB / 0.4948 GB (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=0.001 OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete.fmu > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)