Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII.conf.json 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/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_SixthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_SixthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 222.9 MB / 238.9 MB, free: 4.758 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001551/0.001551, allocations: 188.5 kB / 289.1 MB, free: 2.496 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.533/0.533, allocations: 91.9 MB / 431.2 MB, free: 9.477 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001698/0.001697, allocations: 72.08 kB / 0.5013 GB, free: 8.102 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4027/0.4044, allocations: 71.26 MB / 0.5709 GB, free: 36.48 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII): time 0.01583/0.4203, allocations: 23.54 MB / 0.5939 GB, free: 20.21 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01225/0.4326, allocations: 5.2 MB / 0.599 GB, free: 16.45 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005838/0.4385, allocations: 54.78 kB / 0.599 GB, free: 16.44 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003505/0.442, allocations: 0.6758 MB / 0.5997 GB, free: 16.17 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00811/0.4502, allocations: 1.757 MB / 0.6014 GB, free: 14.94 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005677/0.4559, allocations: 1.924 MB / 0.6033 GB, free: 13.84 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00897/0.4649, allocations: 5.512 MB / 0.6087 GB, free: 11.06 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002501/0.4675, allocations: 1.149 MB / 0.6098 GB, free: 10.47 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004478/0.472, allocations: 2.188 MB / 0.6119 GB, free: 9.41 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006543/0.4786, allocations: 2.858 MB / 0.6147 GB, free: 8.023 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002907/0.4815, allocations: 292.1 kB / 0.615 GB, free: 8.023 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004331/0.4859, allocations: 432 kB / 0.6154 GB, free: 7.98 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001564/0.4875, allocations: 1.015 MB / 0.6164 GB, free: 7.336 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005727/0.4932, allocations: 2.483 MB / 0.6188 GB, free: 5.73 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00936/0.5026, allocations: 6.052 MB / 0.6247 GB, free: 2.941 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.919e-06/0.5026, allocations: 1.938 kB / 0.6247 GB, free: 2.941 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.5027, allocations: 3.938 kB / 0.6247 GB, free: 2.938 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003033/0.503, allocations: 0 / 0.6247 GB, free: 2.938 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 895 * Number of variables: 895 Notification: Performance of Generate backend data structure: time 0.03804/0.541, allocations: 9.248 MB / 0.6338 GB, free: 14.36 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.496e-05/0.5411, allocations: 8.031 kB / 0.6338 GB, free: 14.36 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001241/0.5423, allocations: 484.9 kB / 0.6342 GB, free: 13.87 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02847/0.5708, allocations: 4.02 MB / 0.6382 GB, free: 9.84 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007422/0.5783, allocations: 2.694 MB / 0.6408 GB, free: 7.062 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001156/0.5795, allocations: 0.9574 MB / 0.6417 GB, free: 5.969 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001815/0.5813, allocations: 348 kB / 0.6421 GB, free: 5.629 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0132/0.5945, allocations: 4.751 MB / 0.6467 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-05/0.5946, allocations: 3.938 kB / 0.6467 GB, free: 0.8438 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005522/0.5952, allocations: 140 kB / 0.6468 GB, free: 0.707 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.147e-05/0.5953, allocations: 84 kB / 0.6469 GB, free: 0.625 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01129/0.6066, allocations: 4.256 MB / 0.6511 GB, free: 12.36 MB / 462.1 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.04762/0.6542, allocations: 18.42 MB / 0.6691 GB, free: 8.762 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01527/0.6696, allocations: 5.037 MB / 0.674 GB, free: 3.648 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007629/0.6773, allocations: 2.806 MB / 0.6767 GB, free: 0.832 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001159/0.6785, allocations: 70.92 kB / 0.6768 GB, free: 0.7617 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009573/0.6881, allocations: 3.189 MB / 0.6799 GB, free: 13.53 MB / 494.1 MB Notification: Performance of pre-optimization done (n=385): time 1.47e-05/0.6882, allocations: 0 / 0.6799 GB, free: 13.53 MB / 494.1 MB Notification: Performance of matching and sorting (n=385): time 0.3282/1.016, allocations: 66.82 MB / 0.7452 GB, free: 10.52 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000126/1.017, allocations: 149.9 kB / 0.7453 GB, free: 10.34 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007323/1.024, allocations: 3.27 MB / 0.7485 GB, free: 7.055 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001343/1.025, allocations: 85.7 kB / 0.7486 GB, free: 6.965 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002083/1.027, allocations: 1.967 MB / 0.7505 GB, free: 4.984 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00294/1.03, allocations: 1.332 MB / 0.7518 GB, free: 3.633 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004312/1.035, allocations: 0.6823 MB / 0.7525 GB, free: 2.938 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001113/1.035, allocations: 305.1 kB / 0.7528 GB, free: 2.637 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00715/1.042, allocations: 2.624 MB / 0.7553 GB, free: 4 kB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007604/1.05, allocations: 3.249 MB / 0.7585 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3703/1.42, allocations: 19.13 MB / 0.7772 GB, free: 153.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.575e-05/1.42, allocations: 12.16 kB / 0.7772 GB, free: 153.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=546) (initialization): time 0.0713/1.491, allocations: 17.24 MB / 0.794 GB, free: 152.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.251e-05/1.491, allocations: 65 kB / 0.7941 GB, free: 152.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-05/1.491, allocations: 14.75 kB / 0.7941 GB, free: 152.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02992/1.521, allocations: 7.305 MB / 0.8012 GB, free: 151 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004746/1.526, allocations: 0.6782 MB / 0.8019 GB, free: 151 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09581/1.622, allocations: 31.15 MB / 0.8323 GB, free: 135.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007054/1.629, allocations: 0.6254 MB / 0.8329 GB, free: 135.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001227/1.63, allocations: 148 kB / 0.8331 GB, free: 135.1 MB / 0.5606 GB Warning: Assuming fixed start value for the following 4 variables: order6.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3.delta:VARIABLE(flow=false start = order3.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3.e1q:VARIABLE(start = order3.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: 65 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (409): * Single equations (assignments): 406 * Array equations: 0 * Algorithm blocks: 2 * 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 {(92,46)} Notification: Performance of prepare postOptimizeDAE: time 0.003514/1.634, allocations: 0.6819 MB / 0.8337 GB, free: 134.4 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002028/1.636, allocations: 467.8 kB / 0.8342 GB, free: 133.9 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05326/1.689, allocations: 16.88 MB / 0.8507 GB, free: 117 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.473e-05/1.689, allocations: 39.94 kB / 0.8507 GB, free: 116.9 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.942e-05/1.69, allocations: 28 kB / 0.8507 GB, free: 116.9 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001092/1.69, allocations: 23.92 kB / 0.8508 GB, free: 116.9 MB / 0.5606 GB 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.0642/1.754, allocations: 21.91 MB / 0.8721 GB, free: 94.92 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.53e-05/1.754, allocations: 4 kB / 0.8721 GB, free: 94.92 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002573/1.757, allocations: 391.5 kB / 0.8725 GB, free: 94.54 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02503/1.782, allocations: 7.348 MB / 0.8797 GB, free: 87.17 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001318/1.783, allocations: 75.98 kB / 0.8798 GB, free: 87.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07398/1.857, allocations: 28.98 MB / 0.9081 GB, free: 57.82 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/1.857, allocations: 240 / 0.9081 GB, free: 57.82 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0624/1.919, allocations: 20.28 MB / 0.9279 GB, free: 37.47 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001813/1.921, allocations: 0.5648 MB / 0.9284 GB, free: 36.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002151/1.923, allocations: 60 kB / 0.9285 GB, free: 36.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005857/1.929, allocations: 383.5 kB / 0.9288 GB, free: 36.45 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003913/1.933, allocations: 0.7685 MB / 0.9296 GB, free: 35.68 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009169/1.934, allocations: 95.98 kB / 0.9297 GB, free: 35.58 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003926/1.938, allocations: 2.145 MB / 0.9318 GB, free: 33.43 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.9e-07/1.938, allocations: 4 kB / 0.9318 GB, free: 33.43 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.008468/1.947, allocations: 1.818 MB / 0.9336 GB, free: 31.61 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 13 (order3.delta,order3.w,order3.e1q,order6.delta,order6.w,order6.e1q,order6.e1d,order6.e2q,order6.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (249): * Single equations (assignments): 246 * Array equations: 0 * Algorithm blocks: 1 * 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 {(98,38,5.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.06312/2.01, allocations: 20.95 MB / 0.954 GB, free: 10.56 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02688/2.037, allocations: 9.204 MB / 0.963 GB, free: 1.305 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.465e-06/2.037, allocations: 0 / 0.963 GB, free: 1.305 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.02245/2.059, allocations: 6.201 MB / 0.9691 GB, free: 11.06 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007479/2.067, allocations: 383.5 kB / 0.9694 GB, free: 10.68 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5046/2.571, allocations: 70.61 MB / 1.038 GB, free: 174.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002534/2.574, allocations: 2.457 MB / 1.041 GB, free: 173.6 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.002089/2.576, allocations: 374.1 kB / 1.041 GB, free: 173.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002525/2.579, allocations: 1.985 MB / 1.043 GB, free: 171.9 MB / 0.5919 GB Notification: Performance of SimCode: time 1.303e-06/2.579, allocations: 0 / 1.043 GB, free: 171.9 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1598/2.738, allocations: 120.9 MB / 1.161 GB, free: 55.57 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001533/2.739, allocations: 234 kB / 1.161 GB, free: 55.32 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.753/8.492, allocations: 4.062 kB / 1.161 GB, free: 55.32 MB / 0.5919 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_SixthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_SixthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII.pipe 2>&1)