Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.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_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001019/0.001019, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.325/1.325, allocations: 222.9 MB / 239 MB, free: 4.766 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.001356/0.001356, allocations: 188.5 kB / 289.3 MB, free: 2.496 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4546/0.4546, allocations: 78.52 MB / 417.9 MB, free: 3.309 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 71.89 kB / 496.9 MB, free: 6.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1604/0.1619, allocations: 68.18 MB / 0.5519 GB, free: 2.543 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.2502/0.4122, allocations: 6.508 MB / 0.5582 GB, free: 36.11 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003406/0.4156, allocations: 1.89 MB / 0.5601 GB, free: 35.57 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004912/0.4161, allocations: 9.375 kB / 0.5601 GB, free: 35.57 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005141/0.4167, allocations: 165.2 kB / 0.5602 GB, free: 35.56 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001555/0.4183, allocations: 0.6692 MB / 0.5609 GB, free: 35.41 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.001116/0.4194, allocations: 0.5401 MB / 0.5614 GB, free: 35.33 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00112/0.4205, allocations: 1.369 MB / 0.5628 GB, free: 35.26 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003581/0.4209, allocations: 286.5 kB / 0.563 GB, free: 35.21 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005213/0.4214, allocations: 0.5814 MB / 0.5636 GB, free: 35.08 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005907/0.422, allocations: 0.7507 MB / 0.5643 GB, free: 34.9 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001319/0.4222, allocations: 106.7 kB / 0.5644 GB, free: 34.9 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004074/0.4226, allocations: 247.6 kB / 0.5647 GB, free: 34.89 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001937/0.4228, allocations: 287.8 kB / 0.5649 GB, free: 34.83 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003925/0.4232, allocations: 0.6144 MB / 0.5655 GB, free: 34.62 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001179/0.4244, allocations: 1.477 MB / 0.567 GB, free: 34.28 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.4244, allocations: 0 / 0.567 GB, free: 34.28 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4244, allocations: 0 / 0.567 GB, free: 34.28 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.41e-05/0.4244, allocations: 0 / 0.567 GB, free: 34.28 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.007202/0.4316, allocations: 2.484 MB / 0.5694 GB, free: 33.4 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.4317, allocations: 8.312 kB / 0.5694 GB, free: 33.4 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004561/0.4362, allocations: 0.765 MB / 0.5702 GB, free: 33.32 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00101/0.4373, allocations: 0.796 MB / 0.5709 GB, free: 32.92 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000232/0.4375, allocations: 261 kB / 0.5712 GB, free: 32.73 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001369/0.4377, allocations: 74.97 kB / 0.5713 GB, free: 32.73 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002129/0.4398, allocations: 1.17 MB / 0.5724 GB, free: 32.6 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.994e-05/0.4398, allocations: 7.125 kB / 0.5724 GB, free: 32.59 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.235e-05/0.4399, allocations: 32.38 kB / 0.5724 GB, free: 32.59 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/0.4399, allocations: 15.75 kB / 0.5725 GB, free: 32.59 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001728/0.4417, allocations: 0.953 MB / 0.5734 GB, free: 32.58 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.004942/0.4466, allocations: 3.545 MB / 0.5769 GB, free: 31.29 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006795/0.4534, allocations: 2.309 MB / 0.5791 GB, free: 30.56 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001129/0.4546, allocations: 0.6615 MB / 0.5798 GB, free: 30.3 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001024/0.4547, allocations: 16.27 kB / 0.5798 GB, free: 30.3 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.201e-05/0.4547, allocations: 46.88 kB / 0.5798 GB, free: 30.25 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 2.946e-06/0.4547, allocations: 0 / 0.5798 GB, free: 30.25 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.02725/0.482, allocations: 6.749 MB / 0.5864 GB, free: 28.94 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.4821, allocations: 95.73 kB / 0.5865 GB, free: 28.84 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002083/0.4842, allocations: 0.9627 MB / 0.5874 GB, free: 28.43 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003185/0.4845, allocations: 46.39 kB / 0.5875 GB, free: 28.38 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004287/0.485, allocations: 460.1 kB / 0.5879 GB, free: 28.02 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004428/0.4854, allocations: 314.6 kB / 0.5882 GB, free: 27.78 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00064/0.4861, allocations: 260.2 kB / 0.5885 GB, free: 27.66 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.629e-05/0.4862, allocations: 301.7 kB / 0.5888 GB, free: 27.36 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001718/0.4879, allocations: 0.6986 MB / 0.5894 GB, free: 27.1 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001766/0.4897, allocations: 0.9177 MB / 0.5903 GB, free: 26.62 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02304/0.5127, allocations: 5.076 MB / 0.5953 GB, free: 25.13 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.036e-05/0.5128, allocations: 1.125 kB / 0.5953 GB, free: 25.13 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01384/0.5267, allocations: 4.139 MB / 0.5993 GB, free: 24.09 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.927e-05/0.5267, allocations: 10.75 kB / 0.5993 GB, free: 24.08 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.573e-05/0.5268, allocations: 9.406 kB / 0.5994 GB, free: 24.08 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005779/0.5326, allocations: 1.516 MB / 0.6008 GB, free: 23.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001429/0.534, allocations: 255.3 kB / 0.6011 GB, free: 23.78 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01862/0.5526, allocations: 8.273 MB / 0.6092 GB, free: 19.26 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001853/0.5545, allocations: 170.2 kB / 0.6093 GB, free: 19.16 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001205/0.5547, allocations: 57 kB / 0.6094 GB, free: 19.14 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: 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.0006096/0.5553, allocations: 275 kB / 0.6096 GB, free: 18.92 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009521/0.5562, allocations: 336.2 kB / 0.61 GB, free: 18.73 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01086/0.5671, allocations: 3.587 MB / 0.6135 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.65e-05/0.5672, allocations: 12.66 kB / 0.6135 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.751e-05/0.5672, allocations: 8 kB / 0.6135 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.761e-05/0.5672, allocations: 7.969 kB / 0.6135 GB, free: 15.95 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.01281/0.58, allocations: 5.116 MB / 0.6185 GB, free: 10.73 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.308e-05/0.5801, allocations: 7.922 kB / 0.6185 GB, free: 10.72 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005568/0.5806, allocations: 113.6 kB / 0.6186 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004817/0.5855, allocations: 1.578 MB / 0.6201 GB, free: 9.027 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001262/0.5856, allocations: 20 kB / 0.6202 GB, free: 9.008 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01788/0.6035, allocations: 10.78 MB / 0.6307 GB, free: 13.89 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.6036, allocations: 0 / 0.6307 GB, free: 13.89 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01432/0.6179, allocations: 4.61 MB / 0.6352 GB, free: 9.254 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005207/0.6184, allocations: 215.9 kB / 0.6354 GB, free: 9.023 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004018/0.6189, allocations: 19.98 kB / 0.6354 GB, free: 9.004 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001226/0.6201, allocations: 83.91 kB / 0.6355 GB, free: 8.922 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006064/0.6207, allocations: 176.8 kB / 0.6357 GB, free: 8.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/0.6208, allocations: 28 kB / 0.6357 GB, free: 8.723 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0009612/0.6218, allocations: 0.6395 MB / 0.6363 GB, free: 8.07 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6218, allocations: 2.25 kB / 0.6363 GB, free: 8.07 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001788/0.6236, allocations: 439.6 kB / 0.6367 GB, free: 7.641 MB / 446.1 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.0003283/0.624, allocations: 143.3 kB / 0.6369 GB, free: 7.492 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006504/0.6305, allocations: 2.306 MB / 0.6391 GB, free: 5.176 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.6305, allocations: 0 / 0.6391 GB, free: 5.176 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003997/0.6345, allocations: 1.334 MB / 0.6404 GB, free: 3.824 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00184/0.6364, allocations: 335.6 kB / 0.6407 GB, free: 3.48 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004636/0.641, allocations: 2.462 MB / 0.6431 GB, free: 1.023 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007102/0.6417, allocations: 1.073 MB / 0.6442 GB, free: 15.92 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.000418/0.6422, allocations: 102.9 kB / 0.6443 GB, free: 15.82 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002705/0.6424, allocations: 83.34 kB / 0.6444 GB, free: 15.74 MB / 462.1 MB Notification: Performance of SimCode: time 5.71e-07/0.6424, allocations: 0 / 0.6444 GB, free: 15.74 MB / 462.1 MB Notification: Performance of Templates: time 0.03617/0.6786, allocations: 20.78 MB / 0.6647 GB, free: 11.19 MB / 478.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)