Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.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: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008819/0.0008874, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.362/1.362, allocations: 223.3 MB / 239.3 MB, free: 5.531 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.001098/0.001098, allocations: 184.5 kB / 290.6 MB, free: 2.195 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4968/0.4968, allocations: 78.55 MB / 420.3 MB, free: 4.223 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000455/0.0004551, allocations: 11.98 kB / 0.4888 GB, free: 5.934 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1697/0.1701, allocations: 69.35 MB / 0.5565 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.2903/0.4605, allocations: 6.402 MB / 0.5627 GB, free: 36.27 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003332/0.4639, allocations: 1.99 MB / 0.5647 GB, free: 35.48 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004306/0.4643, allocations: 11.28 kB / 0.5647 GB, free: 35.48 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006395/0.465, allocations: 188.4 kB / 0.5649 GB, free: 35.41 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001441/0.4664, allocations: 0.7071 MB / 0.5656 GB, free: 35.1 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.0009687/0.4674, allocations: 0.5821 MB / 0.5661 GB, free: 35.01 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001152/0.4686, allocations: 1.503 MB / 0.5676 GB, free: 34.67 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003536/0.4689, allocations: 284.6 kB / 0.5679 GB, free: 34.62 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005557/0.4695, allocations: 0.5662 MB / 0.5684 GB, free: 34.45 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006964/0.4702, allocations: 0.7435 MB / 0.5691 GB, free: 34.23 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001219/0.4703, allocations: 59.88 kB / 0.5692 GB, free: 34.23 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004198/0.4708, allocations: 192.5 kB / 0.5694 GB, free: 34.22 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002487/0.471, allocations: 259.9 kB / 0.5696 GB, free: 34.14 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004532/0.4715, allocations: 0.6289 MB / 0.5702 GB, free: 33.86 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001167/0.4727, allocations: 1.545 MB / 0.5718 GB, free: 33.49 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.4727, allocations: 0 / 0.5718 GB, free: 33.49 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.4727, allocations: 0.6562 kB / 0.5718 GB, free: 33.49 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.242e-05/0.4727, allocations: 0 / 0.5718 GB, free: 33.49 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.007455/0.4802, allocations: 2.497 MB / 0.5742 GB, free: 32.55 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.4802, allocations: 8.219 kB / 0.5742 GB, free: 32.55 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001799/0.4804, allocations: 126.6 kB / 0.5743 GB, free: 32.51 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004462/0.4849, allocations: 0.7833 MB / 0.5751 GB, free: 32.42 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001225/0.4861, allocations: 0.886 MB / 0.576 GB, free: 32 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002527/0.4864, allocations: 270 kB / 0.5762 GB, free: 31.81 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000169/0.4865, allocations: 85.22 kB / 0.5763 GB, free: 31.8 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002018/0.4886, allocations: 1.156 MB / 0.5774 GB, free: 31.71 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.201e-05/0.4886, allocations: 1.375 kB / 0.5774 GB, free: 31.71 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.034e-05/0.4887, allocations: 30.91 kB / 0.5775 GB, free: 31.71 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.136e-05/0.4887, allocations: 21 kB / 0.5775 GB, free: 31.71 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002074/0.4908, allocations: 1.048 MB / 0.5785 GB, free: 31.69 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.005702/0.4965, allocations: 3.901 MB / 0.5823 GB, free: 30.18 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007668/0.5042, allocations: 2.922 MB / 0.5852 GB, free: 29.29 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001526/0.5057, allocations: 0.7369 MB / 0.5859 GB, free: 29.01 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.064e-05/0.5058, allocations: 15.09 kB / 0.5859 GB, free: 29.01 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001713/0.5076, allocations: 0.8788 MB / 0.5868 GB, free: 28.69 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.437e-06/0.5076, allocations: 0 / 0.5868 GB, free: 28.69 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.03159/0.5392, allocations: 8.676 MB / 0.5952 GB, free: 27.11 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.538e-05/0.5393, allocations: 118.1 kB / 0.5953 GB, free: 26.98 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001859/0.5411, allocations: 1.082 MB / 0.5964 GB, free: 26.53 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000162/0.5413, allocations: 46.02 kB / 0.5964 GB, free: 26.48 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003469/0.5417, allocations: 490.6 kB / 0.5969 GB, free: 26.1 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000341/0.542, allocations: 360.9 kB / 0.5972 GB, free: 25.82 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002099/0.5422, allocations: 154.7 kB / 0.5974 GB, free: 25.74 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.733e-05/0.5423, allocations: 301.9 kB / 0.5977 GB, free: 25.45 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001659/0.544, allocations: 0.8228 MB / 0.5985 GB, free: 25.16 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001654/0.5456, allocations: 1.001 MB / 0.5995 GB, free: 24.71 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02381/0.5694, allocations: 6.015 MB / 0.6053 GB, free: 22.93 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.686e-06/0.5695, allocations: 5.219 kB / 0.6053 GB, free: 22.93 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01497/0.5845, allocations: 5.171 MB / 0.6104 GB, free: 21.65 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.49e-05/0.5846, allocations: 59.27 kB / 0.6105 GB, free: 21.59 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.765e-05/0.5846, allocations: 4.844 kB / 0.6105 GB, free: 21.59 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005624/0.5902, allocations: 1.789 MB / 0.6122 GB, free: 20.45 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0014/0.5916, allocations: 291.6 kB / 0.6125 GB, free: 20.17 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01718/0.6088, allocations: 8.613 MB / 0.6209 GB, free: 11.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001945/0.6108, allocations: 238.8 kB / 0.6211 GB, free: 11.18 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001032/0.6109, allocations: 60.59 kB / 0.6212 GB, free: 11.12 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.0005273/0.6115, allocations: 302.2 kB / 0.6215 GB, free: 10.82 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001587/0.6116, allocations: 135.8 kB / 0.6216 GB, free: 10.68 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01245/0.6241, allocations: 4.713 MB / 0.6262 GB, free: 5.938 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.247e-06/0.6241, allocations: 14.02 kB / 0.6262 GB, free: 5.926 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/0.6241, allocations: 11.94 kB / 0.6262 GB, free: 5.914 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.192e-05/0.6241, allocations: 7.969 kB / 0.6262 GB, free: 5.906 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.01382/0.638, allocations: 6.301 MB / 0.6324 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.638, allocations: 0 / 0.6324 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005464/0.6385, allocations: 105.6 kB / 0.6325 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00589/0.6444, allocations: 1.887 MB / 0.6343 GB, free: 13.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.24e-05/0.6445, allocations: 23.98 kB / 0.6344 GB, free: 13.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02008/0.6646, allocations: 9.656 MB / 0.6438 GB, free: 3.543 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.6647, allocations: 0 / 0.6438 GB, free: 3.543 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01554/0.6802, allocations: 5.648 MB / 0.6493 GB, free: 13.86 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004502/0.6807, allocations: 231.2 kB / 0.6495 GB, free: 13.62 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002091/0.6809, allocations: 20 kB / 0.6495 GB, free: 13.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001221/0.6821, allocations: 143.9 kB / 0.6497 GB, free: 13.46 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004973/0.6826, allocations: 188.7 kB / 0.6499 GB, free: 13.27 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.95e-05/0.6827, allocations: 29.25 kB / 0.6499 GB, free: 13.24 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001216/0.6839, allocations: 0.7274 MB / 0.6506 GB, free: 12.51 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.684, allocations: 0 / 0.6506 GB, free: 12.51 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001551/0.6855, allocations: 479.5 kB / 0.651 GB, free: 12.04 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 {(21,11,21.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01594/0.7015, allocations: 6.239 MB / 0.6571 GB, free: 5.754 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006721/0.7082, allocations: 2.781 MB / 0.6599 GB, free: 2.938 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.7082, allocations: 0 / 0.6599 GB, free: 2.938 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004625/0.7128, allocations: 1.824 MB / 0.6616 GB, free: 1.078 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009618/0.7138, allocations: 117.4 kB / 0.6617 GB, free: 0.9648 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04284/0.7567, allocations: 18.99 MB / 0.6803 GB, free: 13.57 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000929/0.7576, allocations: 1.128 MB / 0.6814 GB, free: 12.42 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005476/0.7582, allocations: 119.7 kB / 0.6815 GB, free: 12.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006851/0.7589, allocations: 463.3 kB / 0.6819 GB, free: 11.85 MB / 494.1 MB Notification: Performance of SimCode: time 1.182e-06/0.7589, allocations: 4 kB / 0.682 GB, free: 11.84 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05172/0.8106, allocations: 31.12 MB / 0.7123 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000229/0.8109, allocations: 254 kB / 0.7126 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.545/3.356, allocations: 0 / 0.7126 GB, free: 12.91 MB / 0.5137 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)