Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_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: translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008967/0.008967, allocations: 100.8 kB / 15.87 MB, free: 5.871 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.349/1.349, allocations: 222.9 MB / 239.5 MB, free: 4.82 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.00143/0.00143, allocations: 184.5 kB / 289.8 MB, free: 2.551 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5148/0.5148, allocations: 91.9 MB / 431.8 MB, free: 9.508 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 71.89 kB / 0.5018 GB, free: 8.234 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4064/0.408, allocations: 71.26 MB / 0.5714 GB, free: 36.54 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.005832/0.4138, allocations: 6.884 MB / 0.5782 GB, free: 32.55 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003184/0.417, allocations: 2.006 MB / 0.5801 GB, free: 31.28 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004261/0.4175, allocations: 11.88 kB / 0.5801 GB, free: 31.28 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005881/0.4181, allocations: 196.1 kB / 0.5803 GB, free: 31.2 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001416/0.4195, allocations: 0.7243 MB / 0.581 GB, free: 30.73 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001044/0.4206, allocations: 0.5788 MB / 0.5816 GB, free: 30.43 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009988/0.4216, allocations: 1.502 MB / 0.5831 GB, free: 29.71 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003478/0.4219, allocations: 290.2 kB / 0.5833 GB, free: 29.59 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004994/0.4224, allocations: 0.5934 MB / 0.5839 GB, free: 29.31 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006056/0.4231, allocations: 0.775 MB / 0.5847 GB, free: 28.96 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001283/0.4232, allocations: 71.12 kB / 0.5847 GB, free: 28.96 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003612/0.4236, allocations: 206.9 kB / 0.5849 GB, free: 28.92 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002198/0.4238, allocations: 277.1 kB / 0.5852 GB, free: 28.76 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004299/0.4242, allocations: 0.6231 MB / 0.5858 GB, free: 28.35 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008501/0.4251, allocations: 1.252 MB / 0.587 GB, free: 27.87 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.4251, allocations: 1.125 kB / 0.587 GB, free: 27.87 MB / 430.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.4251, allocations: 0 / 0.587 GB, free: 27.87 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.249e-05/0.4251, allocations: 4 kB / 0.587 GB, free: 27.86 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.008228/0.4334, allocations: 2.677 MB / 0.5897 GB, free: 26.6 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.4334, allocations: 10.38 kB / 0.5897 GB, free: 26.6 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004827/0.4382, allocations: 0.7835 MB / 0.5904 GB, free: 26.43 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001388/0.4396, allocations: 0.8804 MB / 0.5913 GB, free: 25.84 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002471/0.4399, allocations: 257.8 kB / 0.5915 GB, free: 25.62 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001661/0.4401, allocations: 87.22 kB / 0.5916 GB, free: 25.59 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002104/0.4422, allocations: 1.095 MB / 0.5927 GB, free: 25.16 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.862e-05/0.4422, allocations: 0 / 0.5927 GB, free: 25.16 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.304e-05/0.4423, allocations: 30.5 kB / 0.5927 GB, free: 25.14 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.415e-05/0.4424, allocations: 18.59 kB / 0.5927 GB, free: 25.14 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002035/0.4444, allocations: 0.9857 MB / 0.5937 GB, free: 24.81 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.006604/0.451, allocations: 3.857 MB / 0.5975 GB, free: 22.6 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007334/0.4584, allocations: 2.362 MB / 0.5998 GB, free: 21.78 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001395/0.4598, allocations: 0.6763 MB / 0.6004 GB, free: 21.52 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001054/0.4599, allocations: 20.25 kB / 0.6004 GB, free: 21.51 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001646/0.4615, allocations: 0.8265 MB / 0.6013 GB, free: 21.18 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.046e-06/0.4616, allocations: 4 kB / 0.6013 GB, free: 21.18 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.02998/0.4915, allocations: 7.083 MB / 0.6082 GB, free: 19.79 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.261e-05/0.4917, allocations: 121.3 kB / 0.6083 GB, free: 19.66 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001876/0.4935, allocations: 1.082 MB / 0.6093 GB, free: 19.21 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002556/0.4938, allocations: 47.02 kB / 0.6094 GB, free: 19.16 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003397/0.4942, allocations: 492.9 kB / 0.6099 GB, free: 18.78 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003887/0.4945, allocations: 358.3 kB / 0.6102 GB, free: 18.5 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005418/0.4951, allocations: 285.2 kB / 0.6105 GB, free: 18.37 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.64e-05/0.4952, allocations: 306.9 kB / 0.6108 GB, free: 18.07 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001649/0.4968, allocations: 0.7632 MB / 0.6115 GB, free: 17.79 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001731/0.4985, allocations: 0.9305 MB / 0.6124 GB, free: 17.36 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02259/0.5212, allocations: 5.581 MB / 0.6179 GB, free: 14.63 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.345e-05/0.5212, allocations: 1.188 kB / 0.6179 GB, free: 14.63 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01194/0.5332, allocations: 4.328 MB / 0.6221 GB, free: 10.44 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.825e-05/0.5333, allocations: 63.41 kB / 0.6222 GB, free: 10.36 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.684e-05/0.5333, allocations: 4 kB / 0.6222 GB, free: 10.36 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00486/0.5381, allocations: 1.505 MB / 0.6236 GB, free: 8.852 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001361/0.5395, allocations: 299.6 kB / 0.6239 GB, free: 8.559 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01597/0.5555, allocations: 7.621 MB / 0.6314 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00194/0.5575, allocations: 202.8 kB / 0.6316 GB, free: 0.5859 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000207/0.5577, allocations: 55.97 kB / 0.6316 GB, free: 0.5312 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.0007091/0.5584, allocations: 310.3 kB / 0.6319 GB, free: 220 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003599/0.5588, allocations: 130.4 kB / 0.632 GB, free: 88 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0126/0.5714, allocations: 3.865 MB / 0.6358 GB, free: 12.19 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.261e-05/0.5714, allocations: 11.94 kB / 0.6358 GB, free: 12.18 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-05/0.5714, allocations: 11.94 kB / 0.6358 GB, free: 12.16 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.391e-05/0.5715, allocations: 3.984 kB / 0.6358 GB, free: 12.16 MB / 446.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.01479/0.5863, allocations: 5.461 MB / 0.6412 GB, free: 6.586 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.982e-06/0.5863, allocations: 0 / 0.6412 GB, free: 6.586 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005559/0.5869, allocations: 99.89 kB / 0.6413 GB, free: 6.488 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005452/0.5923, allocations: 1.602 MB / 0.6428 GB, free: 4.879 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001035/0.5924, allocations: 23.98 kB / 0.6428 GB, free: 4.855 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01894/0.6114, allocations: 8.777 MB / 0.6514 GB, free: 11.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.6114, allocations: 8 kB / 0.6514 GB, free: 11.79 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01434/0.6258, allocations: 4.733 MB / 0.656 GB, free: 7.023 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005064/0.6263, allocations: 223.5 kB / 0.6563 GB, free: 6.785 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002946/0.6266, allocations: 24 kB / 0.6563 GB, free: 6.762 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001282/0.6279, allocations: 107.8 kB / 0.6564 GB, free: 6.656 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005893/0.6285, allocations: 196.6 kB / 0.6566 GB, free: 6.461 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.309e-05/0.6286, allocations: 27.98 kB / 0.6566 GB, free: 6.434 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001331/0.6299, allocations: 0.7274 MB / 0.6573 GB, free: 5.699 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.6299, allocations: 0 / 0.6573 GB, free: 5.699 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001811/0.6318, allocations: 471.5 kB / 0.6578 GB, free: 5.238 MB / 462.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 {(19,13,24.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000339/0.6321, allocations: 139.4 kB / 0.6579 GB, free: 5.094 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006577/0.6387, allocations: 2.497 MB / 0.6603 GB, free: 2.562 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.185e-06/0.6387, allocations: 0 / 0.6603 GB, free: 2.562 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004316/0.643, allocations: 1.584 MB / 0.6619 GB, free: 0.9414 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001141/0.6442, allocations: 116.5 kB / 0.662 GB, free: 0.8281 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004956/0.6492, allocations: 2.725 MB / 0.6646 GB, free: 14.07 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008615/0.65, allocations: 1.12 MB / 0.6657 GB, free: 12.92 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003638/0.6504, allocations: 87.41 kB / 0.6658 GB, free: 12.84 MB / 478.1 MB Notification: Performance of SimCode: time 9.92e-07/0.6504, allocations: 4 kB / 0.6658 GB, free: 12.83 MB / 478.1 MB Notification: Performance of Templates: time 0.03258/0.683, allocations: 23.37 MB / 0.6887 GB, free: 5.473 MB / 494.1 MB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)