Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_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_Discretized_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009038/0.000904, allocations: 177.2 kB / 15.78 MB, free: 6.352 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.381/1.381, allocations: 223.3 MB / 239.8 MB, free: 20 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007705/0.0007704, allocations: 94.59 kB / 290.9 MB, free: 4.598 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5089/0.5089, allocations: 78.62 MB / 420.7 MB, free: 36.65 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003708/0.0003708, allocations: 15.94 kB / 0.4888 GB, free: 7.238 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1413, allocations: 69.36 MB / 0.5565 GB, free: 1.816 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous): time 0.006825/0.1482, allocations: 6.188 MB / 0.5626 GB, free: 11.6 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.004452/0.1527, allocations: 1.975 MB / 0.5645 GB, free: 9.621 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007035/0.1535, allocations: 15.94 kB / 0.5645 GB, free: 9.605 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006223/0.1541, allocations: 166.7 kB / 0.5647 GB, free: 9.441 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001804/0.1559, allocations: 0.6629 MB / 0.5653 GB, free: 8.781 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.001341/0.1573, allocations: 0.5453 MB / 0.5659 GB, free: 8.238 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.001532/0.1588, allocations: 1.436 MB / 0.5673 GB, free: 6.797 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00043/0.1593, allocations: 269.9 kB / 0.5675 GB, free: 6.52 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007054/0.16, allocations: 0.5716 MB / 0.5681 GB, free: 5.945 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007964/0.1608, allocations: 0.7349 MB / 0.5688 GB, free: 5.207 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001352/0.1609, allocations: 60 kB / 0.5688 GB, free: 5.148 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004522/0.1614, allocations: 175.9 kB / 0.569 GB, free: 4.977 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002422/0.1616, allocations: 262.7 kB / 0.5693 GB, free: 4.719 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002193/0.1619, allocations: 237 kB / 0.5695 GB, free: 4.48 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001123/0.163, allocations: 1.239 MB / 0.5707 GB, free: 3.238 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.163, allocations: 4 kB / 0.5707 GB, free: 3.234 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.163, allocations: 3.938 kB / 0.5707 GB, free: 3.23 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.759e-05/0.163, allocations: 0 / 0.5707 GB, free: 3.23 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: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.008401/0.1714, allocations: 2.525 MB / 0.5732 GB, free: 0.6367 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.277e-05/0.1715, allocations: 11.97 kB / 0.5732 GB, free: 0.625 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2997/0.4712, allocations: 0.777 MB / 0.5739 GB, free: 44.25 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002193/0.4734, allocations: 0.8674 MB / 0.5748 GB, free: 43.99 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000267/0.4737, allocations: 269.3 kB / 0.575 GB, free: 43.8 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00016/0.4739, allocations: 91.34 kB / 0.5751 GB, free: 43.8 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002724/0.4766, allocations: 1.451 MB / 0.5766 GB, free: 43.67 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.015e-05/0.4767, allocations: 1.344 kB / 0.5766 GB, free: 43.67 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001048/0.4768, allocations: 34.95 kB / 0.5766 GB, free: 43.66 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.819e-05/0.4768, allocations: 18.45 kB / 0.5766 GB, free: 43.66 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002063/0.4789, allocations: 1.057 MB / 0.5776 GB, free: 43.66 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.005869/0.4848, allocations: 3.76 MB / 0.5813 GB, free: 42.47 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008386/0.4932, allocations: 3.102 MB / 0.5843 GB, free: 41.86 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001747/0.4949, allocations: 0.8293 MB / 0.5851 GB, free: 41.81 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001022/0.4951, allocations: 19.52 kB / 0.5852 GB, free: 41.81 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001552/0.4966, allocations: 0.806 MB / 0.586 GB, free: 41.71 MB / 442.7 MB Notification: Performance of pre-optimization done (n=115): time 4.428e-06/0.4966, allocations: 9.688 kB / 0.586 GB, free: 41.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=115): time 0.03159/0.5282, allocations: 8.646 MB / 0.5944 GB, free: 40.96 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001799/0.5285, allocations: 204.5 kB / 0.5946 GB, free: 40.75 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001903/0.5304, allocations: 1.077 MB / 0.5957 GB, free: 40.36 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002126/0.5306, allocations: 44.89 kB / 0.5957 GB, free: 40.31 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003469/0.531, allocations: 485.9 kB / 0.5962 GB, free: 39.94 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003683/0.5314, allocations: 334.4 kB / 0.5965 GB, free: 39.69 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.38e-05/0.5315, allocations: 37.69 kB / 0.5965 GB, free: 39.66 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.5316, allocations: 371.7 kB / 0.5969 GB, free: 39.32 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001504/0.5331, allocations: 0.8046 MB / 0.5977 GB, free: 39.05 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001565/0.5347, allocations: 1.152 MB / 0.5988 GB, free: 38.37 MB / 442.7 MB Notification: The given system is mixed-determined. [index = 2] Notification: Performance of analyzeInitialSystem (initialization): time 0.02204/0.5567, allocations: 6.057 MB / 0.6047 GB, free: 36.46 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.848e-05/0.5568, allocations: 2.844 kB / 0.6047 GB, free: 36.46 MB / 442.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.01448/0.5713, allocations: 5.222 MB / 0.6098 GB, free: 35.17 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.226e-05/0.5714, allocations: 61.19 kB / 0.6099 GB, free: 35.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.253e-05/0.5715, allocations: 10.72 kB / 0.6099 GB, free: 35.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006666/0.5781, allocations: 1.859 MB / 0.6117 GB, free: 34.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001679/0.5799, allocations: 309.9 kB / 0.612 GB, free: 34.77 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02053/0.6004, allocations: 8.812 MB / 0.6206 GB, free: 31.03 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002183/0.6026, allocations: 238.1 kB / 0.6208 GB, free: 30.93 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001639/0.6028, allocations: 68.83 kB / 0.6209 GB, free: 30.92 MB / 442.7 MB Warning: Assuming fixed start value for the following 3 variables: 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 Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization sytem: $DER.aVRTypeII.firstOrder2.y = 0.0 $DER.aVRTypeII.derivativeBlock.x = 0.0 aVRTypeII.ExcitationSystem.y = 0.0 aVRTypeII.simpleLagLim.state = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.firstOrder2.y,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.simpleLagLim.state) * Top-level inputs: 0 Notification: Strong component statistics for initialization (185): * Single equations (assignments): 182 * 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 {18 14} Notification: Performance of prepare postOptimizeDAE: time 0.0006826/0.6035, allocations: 334.9 kB / 0.6212 GB, free: 30.66 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002062/0.6056, allocations: 0.6901 MB / 0.6219 GB, free: 30.38 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01613/0.6217, allocations: 4.997 MB / 0.6267 GB, free: 29.27 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.237e-05/0.6218, allocations: 12.38 kB / 0.6268 GB, free: 29.27 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-05/0.6218, allocations: 8.719 kB / 0.6268 GB, free: 29.27 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.363e-05/0.6219, allocations: 13.77 kB / 0.6268 GB, free: 29.26 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.01564/0.6375, allocations: 6.546 MB / 0.6332 GB, free: 25.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.759e-05/0.6376, allocations: 4.031 kB / 0.6332 GB, free: 25.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000599/0.6382, allocations: 103.9 kB / 0.6333 GB, free: 25.39 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005783/0.644, allocations: 2.012 MB / 0.6352 GB, free: 23.38 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000148/0.6441, allocations: 24 kB / 0.6353 GB, free: 23.35 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02013/0.6643, allocations: 12.03 MB / 0.647 GB, free: 10.93 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.6643, allocations: 4.875 kB / 0.647 GB, free: 10.92 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01559/0.6799, allocations: 6.022 MB / 0.6529 GB, free: 4.859 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004963/0.6804, allocations: 235.2 kB / 0.6531 GB, free: 4.609 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001801/0.6806, allocations: 31.95 kB / 0.6532 GB, free: 4.578 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001203/0.6818, allocations: 151.9 kB / 0.6533 GB, free: 4.43 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004663/0.6823, allocations: 172.7 kB / 0.6535 GB, free: 4.262 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.661e-05/0.6824, allocations: 31.98 kB / 0.6535 GB, free: 4.23 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0009151/0.6833, allocations: 0.7238 MB / 0.6542 GB, free: 3.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.6833, allocations: 0 / 0.6542 GB, free: 3.5 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001606/0.6849, allocations: 487.7 kB / 0.6547 GB, free: 3.023 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 68 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(20,23.0%) 12} * Non-linear torn systems: 1 {4 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002771/0.6852, allocations: 155.8 kB / 0.6548 GB, free: 2.867 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006034/0.6913, allocations: 2.854 MB / 0.6576 GB, free: 15.98 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.6913, allocations: 0 / 0.6576 GB, free: 15.98 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004374/0.6957, allocations: 1.596 MB / 0.6592 GB, free: 14.36 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001993/0.6977, allocations: 0.5949 MB / 0.6597 GB, free: 13.74 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004546/0.7022, allocations: 2.784 MB / 0.6625 GB, free: 10.96 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007402/0.703, allocations: 1.156 MB / 0.6636 GB, free: 9.773 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003454/0.7034, allocations: 87.41 kB / 0.6637 GB, free: 9.688 MB / 458.7 MB Notification: Performance of SimCode: time 6.21e-07/0.7034, allocations: 0 / 0.6637 GB, free: 9.688 MB / 458.7 MB Notification: Performance of Templates: time 0.03338/0.7368, allocations: 26.31 MB / 0.6894 GB, free: 15.5 MB / 490.7 MB make -j1 -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.makefile (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.sim & ./OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe 2>&1)