Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.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: translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_release_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_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004441/0.004441, allocations: 167.8 kB / 15.13 MB, free: 6.023 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.282/1.282, allocations: 223.3 MB / 239.1 MB, free: 15.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000743/0.0007429, allocations: 96.14 kB / 290.3 MB, free: 4.562 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4666/0.4666, allocations: 78.62 MB / 420 MB, free: 36.52 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003921/0.0003921, allocations: 12 kB / 499.9 MB, free: 7.207 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1469, allocations: 69.35 MB / 0.5559 GB, free: 1.789 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.005775/0.1527, allocations: 6.005 MB / 0.5618 GB, free: 11.76 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.003734/0.1565, allocations: 1.905 MB / 0.5636 GB, free: 9.848 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004556/0.1569, allocations: 19.94 kB / 0.5637 GB, free: 9.828 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005057/0.1575, allocations: 170.8 kB / 0.5638 GB, free: 9.66 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001478/0.1589, allocations: 0.6621 MB / 0.5645 GB, free: 9 MB / 442.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.001048/0.16, allocations: 0.522 MB / 0.565 GB, free: 8.48 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.001316/0.1613, allocations: 1.409 MB / 0.5663 GB, free: 7.066 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003869/0.1617, allocations: 261.8 kB / 0.5666 GB, free: 6.797 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006189/0.1624, allocations: 0.56 MB / 0.5671 GB, free: 6.234 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00076/0.1631, allocations: 0.7233 MB / 0.5678 GB, free: 5.508 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001295/0.1633, allocations: 60 kB / 0.5679 GB, free: 5.449 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000406/0.1637, allocations: 183.8 kB / 0.5681 GB, free: 5.27 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002199/0.1639, allocations: 254.8 kB / 0.5683 GB, free: 5.02 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002045/0.1641, allocations: 225 kB / 0.5685 GB, free: 4.793 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001051/0.1652, allocations: 1.223 MB / 0.5697 GB, free: 3.566 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1652, allocations: 3.938 kB / 0.5697 GB, free: 3.562 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1652, allocations: 4 kB / 0.5697 GB, free: 3.559 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.23e-05/0.1652, allocations: 0 / 0.5697 GB, free: 3.559 MB / 442.7 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.008015/0.1732, allocations: 2.509 MB / 0.5722 GB, free: 0.9805 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.1733, allocations: 8.031 kB / 0.5722 GB, free: 0.9727 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005069/0.1784, allocations: 0.7827 MB / 0.573 GB, free: 192 kB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2416/0.42, allocations: 0.8358 MB / 0.5738 GB, free: 43.92 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003568/0.4204, allocations: 270.1 kB / 0.574 GB, free: 43.73 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003418/0.4207, allocations: 88.81 kB / 0.5741 GB, free: 43.73 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002617/0.4234, allocations: 1.142 MB / 0.5752 GB, free: 43.66 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.105e-05/0.4234, allocations: 3.062 kB / 0.5752 GB, free: 43.66 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001034/0.4235, allocations: 29.36 kB / 0.5753 GB, free: 43.66 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.857e-05/0.4235, allocations: 18.08 kB / 0.5753 GB, free: 43.66 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002408/0.426, allocations: 1.042 MB / 0.5763 GB, free: 43.65 MB / 442.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.007559/0.4335, allocations: 3.906 MB / 0.5801 GB, free: 42.56 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008129/0.4417, allocations: 2.901 MB / 0.583 GB, free: 42.11 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001511/0.4432, allocations: 0.7401 MB / 0.5837 GB, free: 42.07 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.166e-05/0.4433, allocations: 19.64 kB / 0.5837 GB, free: 42.07 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001646/0.445, allocations: 0.8769 MB / 0.5845 GB, free: 41.98 MB / 442.7 MB Notification: Performance of pre-optimization done (n=96): time 2.915e-06/0.445, allocations: 0 / 0.5845 GB, free: 41.98 MB / 442.7 MB Notification: Performance of matching and sorting (n=96): time 0.03095/0.4759, allocations: 8.637 MB / 0.593 GB, free: 41.22 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.605e-05/0.476, allocations: 113.9 kB / 0.5931 GB, free: 41.1 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001574/0.4776, allocations: 1.08 MB / 0.5941 GB, free: 40.87 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001708/0.4778, allocations: 45.23 kB / 0.5942 GB, free: 40.82 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000261/0.478, allocations: 491 kB / 0.5947 GB, free: 40.44 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002854/0.4783, allocations: 354.9 kB / 0.595 GB, free: 40.18 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.943e-05/0.4784, allocations: 30.38 kB / 0.595 GB, free: 40.15 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.246e-05/0.4785, allocations: 367.3 kB / 0.5954 GB, free: 39.82 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001469/0.48, allocations: 0.8214 MB / 0.5962 GB, free: 39.53 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001461/0.4815, allocations: 1.001 MB / 0.5972 GB, free: 39.08 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001548/0.483, allocations: 0.9474 MB / 0.5981 GB, free: 38.64 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.472e-06/0.483, allocations: 4 kB / 0.5981 GB, free: 38.63 MB / 442.7 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01344/0.4965, allocations: 5.165 MB / 0.6031 GB, free: 37.38 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.189e-05/0.4966, allocations: 62.3 kB / 0.6032 GB, free: 37.31 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.4966, allocations: 2.969 kB / 0.6032 GB, free: 37.31 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006147/0.5027, allocations: 1.899 MB / 0.605 GB, free: 37 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001645/0.5044, allocations: 301.2 kB / 0.6053 GB, free: 36.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02028/0.5247, allocations: 9.014 MB / 0.6141 GB, free: 33.15 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001979/0.5267, allocations: 240.4 kB / 0.6144 GB, free: 33.06 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001344/0.5269, allocations: 56.44 kB / 0.6144 GB, free: 33.05 MB / 442.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 aVRTypeII.firstOrder2.y:VARIABLE(flow=false start = aVRTypeII.firstOrder2.y_start fixed = true ) "Connector of Real output signal" type: Real order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" 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 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (164): * Single equations (assignments): 161 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {19 14} Notification: Performance of prepare postOptimizeDAE: time 0.00056/0.5275, allocations: 301 kB / 0.6147 GB, free: 32.8 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001923/0.5277, allocations: 125.1 kB / 0.6148 GB, free: 32.73 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01472/0.5424, allocations: 4.721 MB / 0.6194 GB, free: 31.7 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.787e-05/0.5425, allocations: 11.77 kB / 0.6194 GB, free: 31.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.53e-05/0.5425, allocations: 10.56 kB / 0.6195 GB, free: 31.69 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.601e-05/0.5425, allocations: 5.203 kB / 0.6195 GB, free: 31.69 MB / 442.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.01768/0.5602, allocations: 6.295 MB / 0.6256 GB, free: 29.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.368e-05/0.5602, allocations: 1.188 kB / 0.6256 GB, free: 29.71 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007944/0.5611, allocations: 107.2 kB / 0.6257 GB, free: 29.69 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006218/0.5673, allocations: 1.892 MB / 0.6276 GB, free: 29.36 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001547/0.5675, allocations: 19.48 kB / 0.6276 GB, free: 29.35 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01741/0.5849, allocations: 9.644 MB / 0.637 GB, free: 20.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.5849, allocations: 4 kB / 0.637 GB, free: 20.8 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01399/0.5989, allocations: 5.625 MB / 0.6425 GB, free: 15.14 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003837/0.5993, allocations: 231.2 kB / 0.6427 GB, free: 14.89 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001491/0.5995, allocations: 20.73 kB / 0.6427 GB, free: 14.88 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/0.6006, allocations: 148.6 kB / 0.6429 GB, free: 14.73 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004388/0.601, allocations: 200.6 kB / 0.6431 GB, free: 14.54 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.698e-05/0.6011, allocations: 23.98 kB / 0.6431 GB, free: 14.51 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008915/0.602, allocations: 0.7235 MB / 0.6438 GB, free: 13.78 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.602, allocations: 1.594 kB / 0.6438 GB, free: 13.78 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001277/0.6033, allocations: 477 kB / 0.6443 GB, free: 13.32 MB / 442.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(21,21.8%) 11} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.000235/0.6035, allocations: 132.1 kB / 0.6444 GB, free: 13.18 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005511/0.6091, allocations: 2.791 MB / 0.6471 GB, free: 10.37 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.6091, allocations: 4 kB / 0.6471 GB, free: 10.36 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003919/0.613, allocations: 1.825 MB / 0.6489 GB, free: 8.504 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007313/0.6137, allocations: 110.3 kB / 0.649 GB, free: 8.395 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003205/0.617, allocations: 2.639 MB / 0.6516 GB, free: 5.777 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004253/0.6174, allocations: 1.132 MB / 0.6527 GB, free: 4.609 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003976/0.6178, allocations: 116.1 kB / 0.6528 GB, free: 4.496 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002333/0.618, allocations: 79.41 kB / 0.6529 GB, free: 4.418 MB / 442.7 MB Notification: Performance of SimCode: time 2.51e-07/0.6181, allocations: 1.969 kB / 0.6529 GB, free: 4.418 MB / 442.7 MB Notification: Performance of Templates: time 0.03089/0.6489, allocations: 21.32 MB / 0.6737 GB, free: 15.29 MB / 474.7 MB make -j1 -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.makefile (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & ./OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)