Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_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.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 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_Discretized_Continuous,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_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.0008266/0.0008267, allocations: 86.41 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.31/1.31, allocations: 223.2 MB / 239 MB, free: 5.473 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.0009739/0.000974, allocations: 184.5 kB / 290.3 MB, free: 2.156 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.437/0.437, allocations: 79.47 MB / 420.8 MB, free: 3.977 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003922/0.0003922, allocations: 12 kB / 0.4892 GB, free: 5.457 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3512/0.3516, allocations: 69.5 MB / 0.5571 GB, free: 37.5 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous): time 0.005641/0.3573, allocations: 6.206 MB / 0.5632 GB, free: 37.07 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003788/0.3611, allocations: 1.971 MB / 0.5651 GB, free: 36.54 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001188/0.3623, allocations: 13.41 kB / 0.5651 GB, free: 36.54 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008631/0.3632, allocations: 174.7 kB / 0.5653 GB, free: 36.47 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00192/0.3651, allocations: 0.6533 MB / 0.5659 GB, free: 36.2 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001186/0.3663, allocations: 0.5517 MB / 0.5664 GB, free: 36.11 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001278/0.3676, allocations: 1.434 MB / 0.5678 GB, free: 35.78 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003588/0.368, allocations: 278.9 kB / 0.5681 GB, free: 35.73 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005272/0.3685, allocations: 0.5642 MB / 0.5687 GB, free: 35.57 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006203/0.3691, allocations: 0.7325 MB / 0.5694 GB, free: 35.38 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001228/0.3693, allocations: 59.75 kB / 0.5694 GB, free: 35.38 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003725/0.3697, allocations: 184.5 kB / 0.5696 GB, free: 35.37 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002024/0.3699, allocations: 255.1 kB / 0.5698 GB, free: 35.29 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002134/0.3701, allocations: 234.7 kB / 0.5701 GB, free: 35.21 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008714/0.371, allocations: 1.243 MB / 0.5713 GB, free: 34.94 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.371, allocations: 1.688 kB / 0.5713 GB, free: 34.94 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.371, allocations: 0 / 0.5713 GB, free: 34.94 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.454e-05/0.371, allocations: 2.938 kB / 0.5713 GB, free: 34.94 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: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.006937/0.3779, allocations: 2.529 MB / 0.5738 GB, free: 33.84 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.378, allocations: 9.562 kB / 0.5738 GB, free: 33.84 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002025/0.3782, allocations: 128.3 kB / 0.5739 GB, free: 33.75 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004472/0.3827, allocations: 0.7898 MB / 0.5747 GB, free: 33.6 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001449/0.3842, allocations: 0.8671 MB / 0.5755 GB, free: 33.04 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002186/0.3844, allocations: 271.1 kB / 0.5758 GB, free: 32.82 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001334/0.3845, allocations: 86.72 kB / 0.5759 GB, free: 32.79 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002441/0.387, allocations: 1.456 MB / 0.5773 GB, free: 32.21 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.911e-05/0.387, allocations: 2.906 kB / 0.5773 GB, free: 32.21 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.786e-05/0.3871, allocations: 40.95 kB / 0.5773 GB, free: 32.18 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.602e-05/0.3871, allocations: 18.97 kB / 0.5773 GB, free: 32.18 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001791/0.3889, allocations: 1.05 MB / 0.5784 GB, free: 31.84 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.004919/0.3938, allocations: 3.794 MB / 0.5821 GB, free: 29.62 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006617/0.4005, allocations: 3.093 MB / 0.5851 GB, free: 28.57 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001377/0.4019, allocations: 0.8327 MB / 0.5859 GB, free: 28.25 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001076/0.402, allocations: 19.84 kB / 0.5859 GB, free: 28.24 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001325/0.4033, allocations: 0.81 MB / 0.5867 GB, free: 27.93 MB / 430.1 MB Notification: Performance of pre-optimization done (n=115): time 3.447e-06/0.4033, allocations: 0 / 0.5867 GB, free: 27.93 MB / 430.1 MB Notification: Performance of matching and sorting (n=115): time 0.02672/0.4301, allocations: 8.819 MB / 0.5953 GB, free: 26.32 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001597/0.4303, allocations: 206.8 kB / 0.5955 GB, free: 26.1 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002966/0.4332, allocations: 1.081 MB / 0.5966 GB, free: 25.65 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002103/0.4335, allocations: 55.52 kB / 0.5966 GB, free: 25.6 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004699/0.434, allocations: 483.1 kB / 0.5971 GB, free: 25.22 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004823/0.4345, allocations: 330.9 kB / 0.5974 GB, free: 24.97 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001449/0.4346, allocations: 35.34 kB / 0.5974 GB, free: 24.94 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000222/0.4348, allocations: 369.2 kB / 0.5978 GB, free: 24.61 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00195/0.4368, allocations: 0.8082 MB / 0.5986 GB, free: 24.33 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00185/0.4387, allocations: 1.157 MB / 0.5997 GB, free: 23.64 MB / 430.1 MB Notification: The given system is mixed-determined. [index = 2] Notification: Performance of analyzeInitialSystem (initialization): time 0.02085/0.4595, allocations: 6.044 MB / 0.6056 GB, free: 21.73 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-05/0.4596, allocations: 3.25 kB / 0.6056 GB, free: 21.73 MB / 430.1 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.01404/0.4736, allocations: 5.223 MB / 0.6107 GB, free: 20.44 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.222e-05/0.4737, allocations: 62.45 kB / 0.6108 GB, free: 20.38 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.642e-05/0.4738, allocations: 9.5 kB / 0.6108 GB, free: 20.38 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005473/0.4793, allocations: 1.853 MB / 0.6126 GB, free: 19.52 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/0.4805, allocations: 307.5 kB / 0.6129 GB, free: 19.21 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01627/0.4968, allocations: 8.822 MB / 0.6215 GB, free: 10.26 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001708/0.4985, allocations: 235.3 kB / 0.6217 GB, free: 10.03 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001943/0.4987, allocations: 71.97 kB / 0.6218 GB, free: 9.961 MB / 430.1 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.0007227/0.4994, allocations: 341.7 kB / 0.6221 GB, free: 9.617 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001721/0.5012, allocations: 0.6939 MB / 0.6228 GB, free: 8.91 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01184/0.513, allocations: 4.987 MB / 0.6277 GB, free: 3.898 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.327e-05/0.5131, allocations: 12.56 kB / 0.6277 GB, free: 3.887 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.229e-05/0.5131, allocations: 8 kB / 0.6277 GB, free: 3.879 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.517e-05/0.5131, allocations: 7.984 kB / 0.6277 GB, free: 3.871 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.01453/0.5276, allocations: 6.554 MB / 0.6341 GB, free: 13.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.009e-05/0.5277, allocations: 0 / 0.6341 GB, free: 13.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005368/0.5282, allocations: 112.9 kB / 0.6342 GB, free: 13.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005865/0.5341, allocations: 2.008 MB / 0.6362 GB, free: 11.08 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001307/0.5343, allocations: 27.98 kB / 0.6362 GB, free: 11.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02221/0.5565, allocations: 12.03 MB / 0.6479 GB, free: 14.63 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.5565, allocations: 4 kB / 0.6479 GB, free: 14.62 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01578/0.5723, allocations: 6.017 MB / 0.6538 GB, free: 8.559 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005939/0.573, allocations: 239.1 kB / 0.654 GB, free: 8.305 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004413/0.5734, allocations: 33.02 kB / 0.6541 GB, free: 8.273 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001368/0.5748, allocations: 143.9 kB / 0.6542 GB, free: 8.133 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005798/0.5754, allocations: 176.7 kB / 0.6544 GB, free: 7.957 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001485/0.5756, allocations: 32.97 kB / 0.6544 GB, free: 7.926 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001372/0.5769, allocations: 0.7238 MB / 0.6551 GB, free: 7.195 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.577, allocations: 1.406 kB / 0.6551 GB, free: 7.195 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002123/0.5791, allocations: 487.7 kB / 0.6556 GB, free: 6.719 MB / 462.1 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.01607/0.5952, allocations: 6.619 MB / 0.662 GB, free: 40 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006783/0.602, allocations: 2.854 MB / 0.6648 GB, free: 13.15 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/0.602, allocations: 4 kB / 0.6648 GB, free: 13.14 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004052/0.6061, allocations: 1.592 MB / 0.6664 GB, free: 11.53 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002195/0.6083, allocations: 0.6016 MB / 0.667 GB, free: 10.91 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02866/0.637, allocations: 12.26 MB / 0.6789 GB, free: 14.23 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009507/0.638, allocations: 1.152 MB / 0.6801 GB, free: 13.04 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0006658/0.6387, allocations: 127.8 kB / 0.6802 GB, free: 12.92 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008801/0.6396, allocations: 491.3 kB / 0.6807 GB, free: 12.44 MB / 494.1 MB Notification: Performance of SimCode: time 1.773e-06/0.6396, allocations: 4 kB / 0.6807 GB, free: 12.44 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05764/0.6972, allocations: 32.5 MB / 0.7124 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002587/0.6975, allocations: 258.2 kB / 0.7127 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.476/3.173, allocations: 0 / 0.7127 GB, free: 12.07 MB / 0.5137 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe 2>&1) Environment - environmentSimulation: