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.0007027/0.0007026, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.356/1.356, allocations: 223.3 MB / 239 MB, free: 5.469 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.001232/0.001232, allocations: 184.4 kB / 290.3 MB, free: 2.145 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4906/0.4906, allocations: 78.55 MB / 419.9 MB, free: 4.336 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00038/0.0003801, allocations: 19.88 kB / 499.8 MB, free: 6.395 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1395/0.1399, allocations: 69.36 MB / 0.5558 GB, free: 0.9883 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.2733/0.4132, allocations: 5.681 MB / 0.5614 GB, free: 37.23 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004206/0.4175, allocations: 1.809 MB / 0.5631 GB, free: 36.96 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008911/0.4184, allocations: 15.12 kB / 0.5631 GB, free: 36.96 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004913/0.4189, allocations: 152.4 kB / 0.5633 GB, free: 36.89 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001839/0.4208, allocations: 0.6168 MB / 0.5639 GB, free: 36.72 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.001162/0.4219, allocations: 0.5016 MB / 0.5644 GB, free: 36.69 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00144/0.4234, allocations: 1.237 MB / 0.5656 GB, free: 36.4 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003984/0.4238, allocations: 230.2 kB / 0.5658 GB, free: 36.37 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007044/0.4245, allocations: 0.4984 MB / 0.5663 GB, free: 36.24 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006616/0.4252, allocations: 0.674 MB / 0.567 GB, free: 36.1 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001059/0.4253, allocations: 54.22 kB / 0.567 GB, free: 36.1 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004459/0.4257, allocations: 183.8 kB / 0.5672 GB, free: 36.09 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001672/0.4259, allocations: 220.9 kB / 0.5674 GB, free: 36.04 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001835/0.4261, allocations: 219.2 kB / 0.5676 GB, free: 35.96 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009042/0.427, allocations: 1.086 MB / 0.5687 GB, free: 35.8 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.427, allocations: 0.625 kB / 0.5687 GB, free: 35.8 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.427, allocations: 3.938 kB / 0.5687 GB, free: 35.8 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.75e-05/0.4271, allocations: 0 / 0.5687 GB, free: 35.8 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.006726/0.4338, allocations: 2.325 MB / 0.5709 GB, free: 34.95 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.4339, allocations: 10.75 kB / 0.5709 GB, free: 34.95 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004698/0.4386, allocations: 0.7643 MB / 0.5717 GB, free: 34.87 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001413/0.44, allocations: 0.7588 MB / 0.5724 GB, free: 34.51 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002435/0.4403, allocations: 270 kB / 0.5727 GB, free: 34.32 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001316/0.4404, allocations: 74.84 kB / 0.5728 GB, free: 34.32 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002192/0.4426, allocations: 1.242 MB / 0.574 GB, free: 34.18 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/0.4426, allocations: 8.453 kB / 0.574 GB, free: 34.18 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.756e-05/0.4427, allocations: 33.72 kB / 0.574 GB, free: 34.17 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.635e-05/0.4427, allocations: 16.52 kB / 0.574 GB, free: 34.17 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001817/0.4446, allocations: 1.008 MB / 0.575 GB, free: 34.16 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.005357/0.4499, allocations: 3.614 MB / 0.5785 GB, free: 32.02 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006654/0.4566, allocations: 2.865 MB / 0.5813 GB, free: 31.16 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001316/0.458, allocations: 0.7164 MB / 0.582 GB, free: 30.9 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001101/0.4581, allocations: 16.09 kB / 0.5821 GB, free: 30.9 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/0.4581, allocations: 44.28 kB / 0.5821 GB, free: 30.85 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 2.775e-06/0.4581, allocations: 4 kB / 0.5821 GB, free: 30.85 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.02675/0.4849, allocations: 8.224 MB / 0.5901 GB, free: 29.38 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001252/0.4851, allocations: 100.7 kB / 0.5902 GB, free: 29.27 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001694/0.4868, allocations: 0.9577 MB / 0.5912 GB, free: 28.86 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002626/0.487, allocations: 40.83 kB / 0.5912 GB, free: 28.81 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003461/0.4874, allocations: 464.3 kB / 0.5916 GB, free: 28.45 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003708/0.4878, allocations: 314.6 kB / 0.5919 GB, free: 28.2 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.988e-05/0.4879, allocations: 26.22 kB / 0.592 GB, free: 28.18 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.488, allocations: 359.4 kB / 0.5923 GB, free: 27.86 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001616/0.4896, allocations: 0.7526 MB / 0.593 GB, free: 27.59 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001739/0.4913, allocations: 0.9765 MB / 0.594 GB, free: 27.1 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001744/0.4931, allocations: 0.8315 MB / 0.5948 GB, free: 26.74 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.388e-05/0.4931, allocations: 3.25 kB / 0.5948 GB, free: 26.74 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01362/0.5068, allocations: 4.921 MB / 0.5996 GB, free: 25.62 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.589e-05/0.5069, allocations: 11.41 kB / 0.5996 GB, free: 25.62 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.414e-05/0.5069, allocations: 5.953 kB / 0.5996 GB, free: 25.62 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006167/0.5131, allocations: 1.867 MB / 0.6015 GB, free: 25.31 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001349/0.5144, allocations: 259.8 kB / 0.6017 GB, free: 25.28 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02135/0.5358, allocations: 8.773 MB / 0.6103 GB, free: 21.52 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002024/0.5379, allocations: 207.8 kB / 0.6105 GB, free: 21.34 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003481/0.5383, allocations: 54.7 kB / 0.6105 GB, free: 21.3 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 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 order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" 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 (150): * Single equations (assignments): 149 * Array equations: 0 * Algorithm blocks: 0 * 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 {20 12} Notification: Performance of prepare postOptimizeDAE: time 0.0009445/0.5392, allocations: 256.2 kB / 0.6108 GB, free: 21.04 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001188/0.5404, allocations: 365.2 kB / 0.6111 GB, free: 20.72 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01137/0.5518, allocations: 4.412 MB / 0.6154 GB, free: 16.74 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.299e-05/0.5519, allocations: 11.95 kB / 0.6154 GB, free: 16.73 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.574e-05/0.5519, allocations: 16.98 kB / 0.6155 GB, free: 16.71 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.723e-05/0.552, allocations: 5.016 kB / 0.6155 GB, free: 16.71 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.01425/0.5662, allocations: 5.969 MB / 0.6213 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.324e-05/0.5663, allocations: 11.94 kB / 0.6213 GB, free: 10.62 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005634/0.5669, allocations: 103.9 kB / 0.6214 GB, free: 10.52 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004791/0.5717, allocations: 1.869 MB / 0.6232 GB, free: 8.648 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001294/0.5718, allocations: 20 kB / 0.6232 GB, free: 8.629 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01656/0.5884, allocations: 10.79 MB / 0.6338 GB, free: 13.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.5884, allocations: 0 / 0.6338 GB, free: 13.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01413/0.6026, allocations: 5.521 MB / 0.6392 GB, free: 7.957 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005047/0.6031, allocations: 215.4 kB / 0.6394 GB, free: 7.723 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003417/0.6035, allocations: 20 kB / 0.6394 GB, free: 7.703 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001155/0.6047, allocations: 117 kB / 0.6395 GB, free: 7.59 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005873/0.6053, allocations: 180.6 kB / 0.6397 GB, free: 7.414 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000108/0.6054, allocations: 27.98 kB / 0.6397 GB, free: 7.387 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001065/0.6065, allocations: 0.6317 MB / 0.6403 GB, free: 6.746 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.6065, allocations: 0 / 0.6403 GB, free: 6.746 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002092/0.6086, allocations: 435.6 kB / 0.6407 GB, free: 6.32 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 (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 {(20,23.0%) 12} * Non-linear torn systems: 1 {3 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003564/0.6089, allocations: 135.2 kB / 0.6409 GB, free: 6.18 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006379/0.6153, allocations: 2.578 MB / 0.6434 GB, free: 3.586 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/0.6154, allocations: 8 kB / 0.6434 GB, free: 3.578 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003865/0.6192, allocations: 1.535 MB / 0.6449 GB, free: 2.035 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001725/0.621, allocations: 370.1 kB / 0.6453 GB, free: 1.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00423/0.6252, allocations: 2.43 MB / 0.6476 GB, free: 15.25 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006406/0.6259, allocations: 1.077 MB / 0.6487 GB, free: 14.14 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004057/0.6263, allocations: 105.5 kB / 0.6488 GB, free: 14.04 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000251/0.6266, allocations: 71.42 kB / 0.6488 GB, free: 13.96 MB / 462.1 MB Notification: Performance of SimCode: time 4.2e-07/0.6266, allocations: 0 / 0.6488 GB, free: 13.96 MB / 462.1 MB Notification: Performance of Templates: time 0.03127/0.6579, allocations: 19.29 MB / 0.6677 GB, free: 10.87 MB / 478.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: