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: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",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.001364/0.001365, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 222.9 MB / 239.3 MB, free: 4.578 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.001412/0.001412, allocations: 188.5 kB / 289.6 MB, free: 2.312 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4447/0.4447, allocations: 78.53 MB / 418.2 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001748/0.001748, allocations: 75.88 kB / 497.6 MB, free: 6.332 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1359, allocations: 68.18 MB / 0.5525 GB, free: 2.105 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.2364/0.3724, allocations: 6.2 MB / 0.5585 GB, free: 36.26 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003308/0.3757, allocations: 1.856 MB / 0.5603 GB, free: 35.72 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005539/0.3763, allocations: 10.28 kB / 0.5604 GB, free: 35.72 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005054/0.3769, allocations: 208.9 kB / 0.5606 GB, free: 35.71 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001626/0.3785, allocations: 0.7544 MB / 0.5613 GB, free: 35.57 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.001119/0.3796, allocations: 0.5829 MB / 0.5619 GB, free: 35.49 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001135/0.3808, allocations: 1.372 MB / 0.5632 GB, free: 35.34 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003625/0.3811, allocations: 277 kB / 0.5635 GB, free: 35.3 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000559/0.3817, allocations: 0.5857 MB / 0.564 GB, free: 35.14 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006178/0.3823, allocations: 0.7554 MB / 0.5648 GB, free: 34.94 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001528/0.3825, allocations: 105.1 kB / 0.5649 GB, free: 34.94 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004248/0.3829, allocations: 239.3 kB / 0.5651 GB, free: 34.93 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001819/0.3831, allocations: 282.9 kB / 0.5654 GB, free: 34.86 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003917/0.3835, allocations: 0.6214 MB / 0.566 GB, free: 34.63 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001055/0.3846, allocations: 1.473 MB / 0.5674 GB, free: 34.27 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3846, allocations: 3.875 kB / 0.5674 GB, free: 34.27 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3846, allocations: 3.375 kB / 0.5674 GB, free: 34.27 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.806e-05/0.3846, allocations: 0 / 0.5674 GB, free: 34.27 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.007297/0.3919, allocations: 2.48 MB / 0.5698 GB, free: 33.4 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.392, allocations: 8.656 kB / 0.5699 GB, free: 33.4 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001148/0.3921, allocations: 120.4 kB / 0.57 GB, free: 33.36 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004553/0.3967, allocations: 0.7672 MB / 0.5707 GB, free: 33.27 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/0.3977, allocations: 0.7983 MB / 0.5715 GB, free: 32.88 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002235/0.3979, allocations: 251.4 kB / 0.5717 GB, free: 32.69 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001332/0.3981, allocations: 80.69 kB / 0.5718 GB, free: 32.69 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002029/0.4001, allocations: 1.178 MB / 0.573 GB, free: 32.55 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.898e-05/0.4002, allocations: 5.266 kB / 0.573 GB, free: 32.55 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.361e-05/0.4002, allocations: 30.62 kB / 0.573 GB, free: 32.55 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.4003, allocations: 15.75 kB / 0.573 GB, free: 32.55 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001694/0.402, allocations: 0.9483 MB / 0.5739 GB, free: 32.54 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.00487/0.4068, allocations: 3.548 MB / 0.5774 GB, free: 31.25 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006782/0.4136, allocations: 2.307 MB / 0.5797 GB, free: 30.51 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001245/0.4149, allocations: 0.6542 MB / 0.5803 GB, free: 30.25 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.953e-05/0.415, allocations: 26.41 kB / 0.5803 GB, free: 30.24 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.7e-05/0.415, allocations: 45.38 kB / 0.5804 GB, free: 30.2 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 4.067e-06/0.4151, allocations: 2.25 kB / 0.5804 GB, free: 30.2 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.02626/0.4413, allocations: 6.745 MB / 0.587 GB, free: 28.89 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.114e-05/0.4415, allocations: 95.72 kB / 0.587 GB, free: 28.79 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001402/0.4429, allocations: 0.9668 MB / 0.588 GB, free: 28.37 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001785/0.4431, allocations: 45.98 kB / 0.588 GB, free: 28.32 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002709/0.4433, allocations: 455.5 kB / 0.5885 GB, free: 27.96 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002847/0.4436, allocations: 319 kB / 0.5888 GB, free: 27.72 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004233/0.4441, allocations: 255.9 kB / 0.589 GB, free: 27.6 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.128e-05/0.4441, allocations: 301.8 kB / 0.5893 GB, free: 27.3 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001401/0.4455, allocations: 0.6953 MB / 0.59 GB, free: 27.05 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001542/0.4471, allocations: 0.9242 MB / 0.5909 GB, free: 26.56 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02184/0.4689, allocations: 5.08 MB / 0.5958 GB, free: 25.07 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-05/0.469, allocations: 1.281 kB / 0.5958 GB, free: 25.07 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01321/0.4822, allocations: 4.136 MB / 0.5999 GB, free: 24.02 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.371e-05/0.4823, allocations: 11.41 kB / 0.5999 GB, free: 24.02 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.069e-05/0.4823, allocations: 5.312 kB / 0.5999 GB, free: 24.02 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005697/0.488, allocations: 1.521 MB / 0.6014 GB, free: 23.74 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001267/0.4893, allocations: 257.4 kB / 0.6016 GB, free: 23.71 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01848/0.5078, allocations: 8.267 MB / 0.6097 GB, free: 18.95 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001945/0.5098, allocations: 171.8 kB / 0.6099 GB, free: 18.84 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001248/0.5099, allocations: 54.67 kB / 0.6099 GB, free: 18.83 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: 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 (151): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * 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.0007271/0.5106, allocations: 274.2 kB / 0.6102 GB, free: 18.61 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001018/0.5117, allocations: 338.5 kB / 0.6105 GB, free: 18.41 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01091/0.5226, allocations: 3.593 MB / 0.614 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.816e-05/0.5226, allocations: 9.734 kB / 0.614 GB, free: 15.56 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.307e-05/0.5227, allocations: 8.812 kB / 0.614 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.221e-05/0.5227, allocations: 3.984 kB / 0.614 GB, free: 15.55 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.01273/0.5354, allocations: 5.122 MB / 0.619 GB, free: 10.32 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.842e-05/0.5355, allocations: 7.938 kB / 0.619 GB, free: 10.31 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006204/0.5361, allocations: 107.9 kB / 0.6191 GB, free: 10.21 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005015/0.5411, allocations: 1.583 MB / 0.6207 GB, free: 8.617 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001373/0.5413, allocations: 19.98 kB / 0.6207 GB, free: 8.598 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01721/0.5585, allocations: 10.77 MB / 0.6312 GB, free: 13.49 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/0.5586, allocations: 4.688 kB / 0.6312 GB, free: 13.48 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01492/0.5735, allocations: 4.614 MB / 0.6357 GB, free: 8.844 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006371/0.5742, allocations: 203.5 kB / 0.6359 GB, free: 8.625 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004785/0.5747, allocations: 24 kB / 0.636 GB, free: 8.602 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001273/0.576, allocations: 85.5 kB / 0.636 GB, free: 8.516 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006317/0.5766, allocations: 176.7 kB / 0.6362 GB, free: 8.344 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001371/0.5768, allocations: 24 kB / 0.6362 GB, free: 8.32 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001207/0.578, allocations: 0.6473 MB / 0.6369 GB, free: 7.664 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.578, allocations: 0 / 0.6369 GB, free: 7.664 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002083/0.5801, allocations: 435.6 kB / 0.6373 GB, free: 7.238 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 (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 {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0152/0.5953, allocations: 5.205 MB / 0.6424 GB, free: 1.988 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006831/0.6022, allocations: 2.31 MB / 0.6446 GB, free: 15.66 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.6022, allocations: 0 / 0.6446 GB, free: 15.66 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00418/0.6064, allocations: 1.333 MB / 0.6459 GB, free: 14.32 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001864/0.6083, allocations: 343.5 kB / 0.6462 GB, free: 13.97 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03904/0.6474, allocations: 15.65 MB / 0.6615 GB, free: 13.88 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008257/0.6483, allocations: 1.077 MB / 0.6626 GB, free: 12.77 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005697/0.6489, allocations: 103.4 kB / 0.6627 GB, free: 12.66 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007644/0.6496, allocations: 439.3 kB / 0.6631 GB, free: 12.23 MB / 478.1 MB Notification: Performance of SimCode: time 5.61e-07/0.6496, allocations: 3.938 kB / 0.6631 GB, free: 12.23 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06522/0.7149, allocations: 30.99 MB / 0.6934 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.92/12.64, allocations: 9.5 kB / 0.6934 GB, free: 13.64 MB / 0.4981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=0.001 OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)