Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.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.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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: translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 109.9 kB / 15.99 MB, free: 6.359 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.314/1.314, allocations: 222.9 MB / 239.6 MB, free: 4.711 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.001849/0.00185, allocations: 196.5 kB / 289.9 MB, free: 2.449 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4751/0.4751, allocations: 78.52 MB / 418.6 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001595/0.001595, allocations: 71.89 kB / 497.6 MB, free: 6.695 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1426, allocations: 68.17 MB / 0.5525 GB, free: 2.488 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.2304/0.3731, allocations: 6.873 MB / 0.5592 GB, free: 35.88 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003467/0.3766, allocations: 1.987 MB / 0.5611 GB, free: 35.34 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000641/0.3773, allocations: 9.438 kB / 0.5612 GB, free: 35.34 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006867/0.378, allocations: 192.1 kB / 0.5613 GB, free: 35.33 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001678/0.3797, allocations: 0.7016 MB / 0.562 GB, free: 35.18 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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.001127/0.3808, allocations: 0.5775 MB / 0.5626 GB, free: 35.1 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001363/0.3822, allocations: 1.576 MB / 0.5641 GB, free: 35.02 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004169/0.3826, allocations: 331.7 kB / 0.5644 GB, free: 34.97 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007212/0.3833, allocations: 0.6593 MB / 0.5651 GB, free: 34.83 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006754/0.384, allocations: 0.8258 MB / 0.5659 GB, free: 34.63 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001637/0.3842, allocations: 120 kB / 0.566 GB, free: 34.63 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004571/0.3847, allocations: 261.3 kB / 0.5663 GB, free: 34.62 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002267/0.3849, allocations: 339.1 kB / 0.5666 GB, free: 34.53 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004382/0.3853, allocations: 0.6696 MB / 0.5672 GB, free: 34.29 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000988/0.3863, allocations: 1.283 MB / 0.5685 GB, free: 34.07 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3864, allocations: 0 / 0.5685 GB, free: 34.07 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3864, allocations: 0 / 0.5685 GB, free: 34.07 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.815e-05/0.3864, allocations: 2.688 kB / 0.5685 GB, free: 34.07 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.007872/0.3943, allocations: 2.682 MB / 0.5711 GB, free: 33.09 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.3943, allocations: 10.56 kB / 0.5711 GB, free: 33.09 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004644/0.399, allocations: 0.7761 MB / 0.5719 GB, free: 33 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001313/0.4003, allocations: 0.8779 MB / 0.5727 GB, free: 32.59 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002302/0.4005, allocations: 262.5 kB / 0.573 GB, free: 32.41 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001627/0.4007, allocations: 86.05 kB / 0.5731 GB, free: 32.4 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001913/0.4026, allocations: 1.085 MB / 0.5741 GB, free: 32.32 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.982e-05/0.4027, allocations: 0 / 0.5741 GB, free: 32.32 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.14e-05/0.4028, allocations: 39.28 kB / 0.5742 GB, free: 32.31 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.493e-05/0.4028, allocations: 20.16 kB / 0.5742 GB, free: 32.31 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001733/0.4045, allocations: 0.9906 MB / 0.5752 GB, free: 32.3 MB / 430.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.005771/0.4103, allocations: 3.819 MB / 0.5789 GB, free: 30.71 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006791/0.4171, allocations: 2.373 MB / 0.5812 GB, free: 29.89 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001404/0.4185, allocations: 0.673 MB / 0.5819 GB, free: 29.62 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001127/0.4187, allocations: 19.52 kB / 0.5819 GB, free: 29.61 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001555/0.4202, allocations: 0.8184 MB / 0.5827 GB, free: 29.3 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 2.825e-06/0.4202, allocations: 3.938 kB / 0.5827 GB, free: 29.29 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.02897/0.4492, allocations: 7.079 MB / 0.5896 GB, free: 27.91 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.979e-05/0.4493, allocations: 118.7 kB / 0.5897 GB, free: 27.78 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002188/0.4515, allocations: 1.085 MB / 0.5908 GB, free: 27.33 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002951/0.4518, allocations: 46.5 kB / 0.5908 GB, free: 27.29 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004049/0.4523, allocations: 494.5 kB / 0.5913 GB, free: 26.9 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005464/0.4528, allocations: 357.1 kB / 0.5916 GB, free: 26.62 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008135/0.4536, allocations: 286.1 kB / 0.5919 GB, free: 26.49 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.992e-05/0.4537, allocations: 303 kB / 0.5922 GB, free: 26.2 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001774/0.4555, allocations: 0.7677 MB / 0.5929 GB, free: 25.91 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001907/0.4574, allocations: 0.934 MB / 0.5938 GB, free: 25.48 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02527/0.4827, allocations: 5.602 MB / 0.5993 GB, free: 23.72 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.285e-05/0.4827, allocations: 0 / 0.5993 GB, free: 23.72 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01477/0.4975, allocations: 4.332 MB / 0.6035 GB, free: 22.54 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.507e-05/0.4976, allocations: 64.11 kB / 0.6036 GB, free: 22.48 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.736e-05/0.4977, allocations: 7.281 kB / 0.6036 GB, free: 22.47 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005545/0.5032, allocations: 1.509 MB / 0.6051 GB, free: 22.2 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001634/0.5049, allocations: 303.5 kB / 0.6054 GB, free: 22.15 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01831/0.5232, allocations: 8.266 MB / 0.6134 GB, free: 16.58 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002067/0.5253, allocations: 202.8 kB / 0.6136 GB, free: 16.38 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002952/0.5256, allocations: 55.97 kB / 0.6137 GB, free: 16.33 MB / 430.1 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: 13 * 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 (166): * Single equations (assignments): 163 * 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): 1 system {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008253/0.5265, allocations: 295.7 kB / 0.614 GB, free: 16.03 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003823/0.5269, allocations: 132 kB / 0.6141 GB, free: 15.9 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01159/0.5385, allocations: 3.883 MB / 0.6179 GB, free: 11.99 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-05/0.5385, allocations: 12 kB / 0.6179 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.482e-05/0.5385, allocations: 8 kB / 0.6179 GB, free: 11.97 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.557e-05/0.5386, allocations: 4.797 kB / 0.6179 GB, free: 11.96 MB / 430.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 postOpt removeSimpleEquations (simulation): time 0.01374/0.5523, allocations: 5.454 MB / 0.6232 GB, free: 6.402 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.23e-05/0.5524, allocations: 0 / 0.6232 GB, free: 6.402 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006424/0.553, allocations: 99.84 kB / 0.6233 GB, free: 6.305 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005051/0.5581, allocations: 1.615 MB / 0.6249 GB, free: 4.684 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002179/0.5584, allocations: 24.5 kB / 0.6249 GB, free: 4.66 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01925/0.5776, allocations: 9.609 MB / 0.6343 GB, free: 10.75 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.5777, allocations: 0 / 0.6343 GB, free: 10.75 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01471/0.5924, allocations: 4.742 MB / 0.639 GB, free: 5.977 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005222/0.5929, allocations: 223.2 kB / 0.6392 GB, free: 5.738 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004309/0.5934, allocations: 24 kB / 0.6392 GB, free: 5.715 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001468/0.5949, allocations: 111.9 kB / 0.6393 GB, free: 5.605 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000724/0.5956, allocations: 190.1 kB / 0.6395 GB, free: 5.418 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001543/0.5958, allocations: 31.98 kB / 0.6395 GB, free: 5.387 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001314/0.5971, allocations: 0.7235 MB / 0.6402 GB, free: 4.656 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5971, allocations: 0 / 0.6402 GB, free: 4.656 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001915/0.599, allocations: 467.5 kB / 0.6407 GB, free: 4.199 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * 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 {(21,11,21.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003871/0.5994, allocations: 152.8 kB / 0.6408 GB, free: 4.047 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00683/0.6063, allocations: 2.534 MB / 0.6433 GB, free: 1.484 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.6063, allocations: 0 / 0.6433 GB, free: 1.484 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004427/0.6108, allocations: 1.609 MB / 0.6449 GB, free: 15.84 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001511/0.6123, allocations: 121 kB / 0.645 GB, free: 15.72 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004889/0.6172, allocations: 2.73 MB / 0.6476 GB, free: 12.99 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000781/0.618, allocations: 1.12 MB / 0.6487 GB, free: 11.84 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004829/0.6185, allocations: 87.41 kB / 0.6488 GB, free: 11.76 MB / 462.1 MB Notification: Performance of SimCode: time 8.71e-07/0.6185, allocations: 1.5 kB / 0.6488 GB, free: 11.76 MB / 462.1 MB Notification: Performance of Templates: time 0.03005/0.6486, allocations: 23.43 MB / 0.6717 GB, free: 4.562 MB / 478.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)