Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_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.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_Continuous,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_dev_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.001559/0.001559, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.471/1.471, allocations: 222.9 MB / 238.9 MB, free: 4.758 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.001504/0.001504, allocations: 192.5 kB / 289.1 MB, free: 2.504 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5277/0.5277, allocations: 91.9 MB / 431.2 MB, free: 9.418 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001595/0.001595, allocations: 71.89 kB / 0.5013 GB, free: 8.051 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4543/0.4559, allocations: 71.26 MB / 0.5709 GB, free: 36.32 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.006257/0.4622, allocations: 6.884 MB / 0.5776 GB, free: 32.34 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004025/0.4663, allocations: 2.023 MB / 0.5796 GB, free: 31.05 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008193/0.4671, allocations: 10.78 kB / 0.5796 GB, free: 31.05 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006939/0.4678, allocations: 183.8 kB / 0.5798 GB, free: 30.97 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00169/0.4696, allocations: 0.7164 MB / 0.5805 GB, free: 30.52 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00124/0.4708, allocations: 0.5856 MB / 0.5811 GB, free: 30.21 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001469/0.4723, allocations: 1.497 MB / 0.5825 GB, free: 29.49 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004188/0.4727, allocations: 294.6 kB / 0.5828 GB, free: 29.37 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000637/0.4734, allocations: 0.595 MB / 0.5834 GB, free: 29.09 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006751/0.4741, allocations: 0.7746 MB / 0.5841 GB, free: 28.75 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001444/0.4742, allocations: 80.88 kB / 0.5842 GB, free: 28.74 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004307/0.4747, allocations: 205.5 kB / 0.5844 GB, free: 28.69 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002318/0.4749, allocations: 277.5 kB / 0.5847 GB, free: 28.53 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004473/0.4754, allocations: 0.6235 MB / 0.5853 GB, free: 28.12 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001151/0.4765, allocations: 1.585 MB / 0.5868 GB, free: 27.42 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.4765, allocations: 0 / 0.5868 GB, free: 27.42 MB / 430.1 MB Notification: Performance of FrontEnd: time 7.72e-07/0.4765, allocations: 4 kB / 0.5868 GB, free: 27.42 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.508e-05/0.4766, allocations: 1.219 kB / 0.5868 GB, free: 27.42 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.009016/0.4856, allocations: 2.682 MB / 0.5895 GB, free: 26.15 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.605e-05/0.4857, allocations: 12.47 kB / 0.5895 GB, free: 26.15 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001537/0.4858, allocations: 128 kB / 0.5896 GB, free: 26.06 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004821/0.4906, allocations: 0.7762 MB / 0.5903 GB, free: 25.9 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001645/0.4923, allocations: 0.8791 MB / 0.5912 GB, free: 25.31 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002662/0.4926, allocations: 262.7 kB / 0.5915 GB, free: 25.08 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001798/0.4928, allocations: 89.44 kB / 0.5915 GB, free: 25.05 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002208/0.495, allocations: 1.088 MB / 0.5926 GB, free: 24.63 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.804e-05/0.495, allocations: 1.469 kB / 0.5926 GB, free: 24.63 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.296e-05/0.4951, allocations: 29.62 kB / 0.5926 GB, free: 24.61 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.287e-05/0.4952, allocations: 18.78 kB / 0.5927 GB, free: 24.61 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002045/0.4972, allocations: 0.9887 MB / 0.5936 GB, free: 24.27 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.006898/0.5041, allocations: 3.845 MB / 0.5974 GB, free: 22.07 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007297/0.5114, allocations: 2.379 MB / 0.5997 GB, free: 21.24 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001407/0.5129, allocations: 0.6765 MB / 0.6004 GB, free: 20.97 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000111/0.513, allocations: 18.06 kB / 0.6004 GB, free: 20.97 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001724/0.5147, allocations: 0.8238 MB / 0.6012 GB, free: 20.64 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.577e-06/0.5147, allocations: 1.094 kB / 0.6012 GB, free: 20.64 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.02982/0.5446, allocations: 7.073 MB / 0.6081 GB, free: 19.26 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.254e-05/0.5447, allocations: 122.5 kB / 0.6082 GB, free: 19.13 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002049/0.5467, allocations: 1.081 MB / 0.6093 GB, free: 18.68 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002595/0.547, allocations: 43.17 kB / 0.6093 GB, free: 18.64 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000365/0.5474, allocations: 493.8 kB / 0.6098 GB, free: 18.25 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000387/0.5478, allocations: 360.6 kB / 0.6101 GB, free: 17.97 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005552/0.5483, allocations: 290.8 kB / 0.6104 GB, free: 17.84 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.723e-05/0.5484, allocations: 302.5 kB / 0.6107 GB, free: 17.54 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001687/0.5501, allocations: 0.7641 MB / 0.6114 GB, free: 17.26 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001828/0.5519, allocations: 0.9299 MB / 0.6123 GB, free: 16.83 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02333/0.5753, allocations: 5.58 MB / 0.6178 GB, free: 14.09 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.479e-05/0.5754, allocations: 1.156 kB / 0.6178 GB, free: 14.09 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01263/0.588, allocations: 4.335 MB / 0.622 GB, free: 9.879 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.625e-05/0.5881, allocations: 59.41 kB / 0.6221 GB, free: 9.809 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.073e-05/0.5881, allocations: 7.938 kB / 0.6221 GB, free: 9.801 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004877/0.593, allocations: 1.509 MB / 0.6236 GB, free: 8.289 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001527/0.5946, allocations: 303.5 kB / 0.6238 GB, free: 7.992 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0168/0.6114, allocations: 7.615 MB / 0.6313 GB, free: 236 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002352/0.6138, allocations: 202.8 kB / 0.6315 GB, free: 32 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004334/0.6143, allocations: 56.02 kB / 0.6315 GB, free: 15.97 MB / 446.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.001253/0.6155, allocations: 311.7 kB / 0.6318 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006195/0.6162, allocations: 126.4 kB / 0.6319 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01379/0.63, allocations: 3.865 MB / 0.6357 GB, free: 11.64 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.391e-05/0.63, allocations: 8 kB / 0.6357 GB, free: 11.63 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.691e-05/0.6301, allocations: 11.94 kB / 0.6357 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.203e-05/0.6301, allocations: 7.969 kB / 0.6357 GB, free: 11.61 MB / 446.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.0165/0.6466, allocations: 5.461 MB / 0.6411 GB, free: 6.035 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-05/0.6467, allocations: 0 / 0.6411 GB, free: 6.035 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006702/0.6473, allocations: 111.8 kB / 0.6412 GB, free: 5.926 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005708/0.6531, allocations: 1.594 MB / 0.6427 GB, free: 4.324 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001646/0.6533, allocations: 20 kB / 0.6428 GB, free: 4.305 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02132/0.6746, allocations: 8.789 MB / 0.6513 GB, free: 11.23 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.6747, allocations: 0 / 0.6513 GB, free: 11.23 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0163/0.691, allocations: 4.736 MB / 0.656 GB, free: 6.465 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008477/0.6919, allocations: 219.3 kB / 0.6562 GB, free: 6.23 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006665/0.6926, allocations: 23.94 kB / 0.6562 GB, free: 6.207 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001673/0.6943, allocations: 111.8 kB / 0.6563 GB, free: 6.098 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008486/0.6951, allocations: 192.7 kB / 0.6565 GB, free: 5.906 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000176/0.6953, allocations: 24 kB / 0.6565 GB, free: 5.883 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001668/0.697, allocations: 0.7274 MB / 0.6572 GB, free: 5.148 MB / 462.1 MB Notification: Performance of sort global known variables: time 9.72e-07/0.697, allocations: 0 / 0.6572 GB, free: 5.148 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002571/0.6996, allocations: 475.5 kB / 0.6577 GB, free: 4.684 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 {(19,13,24.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01589/0.7155, allocations: 5.316 MB / 0.6629 GB, free: 15.32 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007114/0.7227, allocations: 2.509 MB / 0.6653 GB, free: 12.77 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.7227, allocations: 0 / 0.6653 GB, free: 12.77 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004578/0.7273, allocations: 1.594 MB / 0.6669 GB, free: 11.14 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001841/0.7292, allocations: 114.3 kB / 0.667 GB, free: 11.03 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04339/0.7726, allocations: 17.13 MB / 0.6837 GB, free: 9.445 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000919/0.7736, allocations: 1.128 MB / 0.6848 GB, free: 8.289 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0007135/0.7743, allocations: 120.1 kB / 0.6849 GB, free: 8.168 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008256/0.7752, allocations: 467.3 kB / 0.6854 GB, free: 7.711 MB / 494.1 MB Notification: Performance of SimCode: time 9.42e-07/0.7752, allocations: 0 / 0.6854 GB, free: 7.711 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07599/0.8512, allocations: 31.67 MB / 0.7163 GB, free: 8.281 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002951/0.8515, allocations: 259.6 kB / 0.7165 GB, free: 7.949 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.97/3.822, allocations: 3.875 kB / 0.7166 GB, free: 7.949 MB / 0.5137 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)