Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_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.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_Discrete,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,fileNamePrefix="OpenIPSL_dev_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.001167/0.001167, allocations: 103.4 kB / 15.33 MB, free: 0.5039 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.336/1.336, allocations: 222.9 MB / 239 MB, free: 4.727 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.001438/0.001438, allocations: 196 kB / 289.3 MB, free: 2.465 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5196/0.5196, allocations: 91.9 MB / 431.3 MB, free: 9.391 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001587/0.001587, allocations: 75.88 kB / 0.5015 GB, free: 7.957 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3261/0.3277, allocations: 71.25 MB / 0.5711 GB, free: 36.64 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.005187/0.333, allocations: 6.535 MB / 0.5775 GB, free: 32.88 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003176/0.3362, allocations: 1.887 MB / 0.5793 GB, free: 31.66 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006929/0.3369, allocations: 15.53 kB / 0.5793 GB, free: 31.66 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004994/0.3374, allocations: 164.9 kB / 0.5795 GB, free: 31.59 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001624/0.3391, allocations: 0.6724 MB / 0.5801 GB, free: 31.16 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001107/0.3402, allocations: 0.5441 MB / 0.5807 GB, free: 30.88 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001203/0.3414, allocations: 1.366 MB / 0.582 GB, free: 30.2 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00037/0.3418, allocations: 287.8 kB / 0.5823 GB, free: 30.08 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006028/0.3424, allocations: 0.5894 MB / 0.5829 GB, free: 29.79 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005684/0.343, allocations: 0.7496 MB / 0.5836 GB, free: 29.43 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001224/0.3431, allocations: 105.1 kB / 0.5837 GB, free: 29.43 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004199/0.3435, allocations: 247.1 kB / 0.5839 GB, free: 29.38 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001597/0.3437, allocations: 286.8 kB / 0.5842 GB, free: 29.2 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003491/0.3441, allocations: 0.6164 MB / 0.5848 GB, free: 28.79 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001089/0.3452, allocations: 1.474 MB / 0.5862 GB, free: 28.11 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3452, allocations: 0 / 0.5862 GB, free: 28.11 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3452, allocations: 3.938 kB / 0.5862 GB, free: 28.11 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.385e-05/0.3452, allocations: 0 / 0.5862 GB, free: 28.11 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.007831/0.353, allocations: 2.478 MB / 0.5887 GB, free: 26.97 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.3531, allocations: 11.5 kB / 0.5887 GB, free: 26.97 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001357/0.3532, allocations: 122.4 kB / 0.5888 GB, free: 26.88 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005004/0.3583, allocations: 0.762 MB / 0.5895 GB, free: 26.73 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001362/0.3597, allocations: 0.7928 MB / 0.5903 GB, free: 26.17 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002522/0.3599, allocations: 261.1 kB / 0.5906 GB, free: 25.95 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00015/0.3601, allocations: 73.62 kB / 0.5906 GB, free: 25.93 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002225/0.3623, allocations: 1.177 MB / 0.5918 GB, free: 25.45 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.212e-05/0.3623, allocations: 3.938 kB / 0.5918 GB, free: 25.45 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.525e-05/0.3624, allocations: 34.66 kB / 0.5918 GB, free: 25.42 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.593e-05/0.3625, allocations: 16.34 kB / 0.5918 GB, free: 25.42 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001842/0.3643, allocations: 0.9472 MB / 0.5927 GB, free: 25.12 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.006058/0.3704, allocations: 3.58 MB / 0.5962 GB, free: 22.95 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007408/0.3778, allocations: 2.307 MB / 0.5985 GB, free: 22.16 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00144/0.3793, allocations: 0.6526 MB / 0.5991 GB, free: 21.91 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001364/0.3794, allocations: 17.47 kB / 0.5992 GB, free: 21.9 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.751e-05/0.3795, allocations: 51.42 kB / 0.5992 GB, free: 21.84 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 3.056e-06/0.3795, allocations: 1.312 kB / 0.5992 GB, free: 21.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.03055/0.41, allocations: 6.863 MB / 0.6059 GB, free: 20.55 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/0.4102, allocations: 100.1 kB / 0.606 GB, free: 20.45 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001869/0.4121, allocations: 0.9671 MB / 0.6069 GB, free: 20.03 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002812/0.4124, allocations: 41.05 kB / 0.607 GB, free: 19.98 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003828/0.4128, allocations: 456.2 kB / 0.6074 GB, free: 19.62 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004723/0.4133, allocations: 318.8 kB / 0.6077 GB, free: 19.38 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007501/0.414, allocations: 255.9 kB / 0.608 GB, free: 19.26 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.921e-05/0.4141, allocations: 302.6 kB / 0.6083 GB, free: 18.96 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001634/0.4157, allocations: 0.6984 MB / 0.6089 GB, free: 18.71 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001661/0.4174, allocations: 0.9203 MB / 0.6098 GB, free: 18.22 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02355/0.441, allocations: 5.071 MB / 0.6148 GB, free: 16.27 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.286e-05/0.441, allocations: 1.125 kB / 0.6148 GB, free: 16.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01416/0.4552, allocations: 4.142 MB / 0.6188 GB, free: 13.26 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.176e-05/0.4553, allocations: 8 kB / 0.6188 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.169e-05/0.4553, allocations: 8 kB / 0.6189 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005166/0.4605, allocations: 1.509 MB / 0.6203 GB, free: 11.73 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001242/0.4618, allocations: 259.6 kB / 0.6206 GB, free: 11.48 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01774/0.4795, allocations: 8.276 MB / 0.6287 GB, free: 3.047 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001834/0.4814, allocations: 175 kB / 0.6288 GB, free: 2.875 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002469/0.4817, allocations: 51.98 kB / 0.6289 GB, free: 2.824 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.0007484/0.4824, allocations: 274.5 kB / 0.6291 GB, free: 2.547 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001161/0.4836, allocations: 336.8 kB / 0.6295 GB, free: 2.207 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01183/0.4954, allocations: 3.588 MB / 0.633 GB, free: 14.61 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-05/0.4955, allocations: 11.94 kB / 0.633 GB, free: 14.59 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.388e-05/0.4955, allocations: 11.94 kB / 0.633 GB, free: 14.58 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.974e-05/0.4956, allocations: 7.922 kB / 0.633 GB, free: 14.57 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.01601/0.5116, allocations: 5.125 MB / 0.638 GB, free: 9.344 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.517e-05/0.5116, allocations: 4 kB / 0.638 GB, free: 9.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000682/0.5123, allocations: 111.9 kB / 0.6381 GB, free: 9.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005808/0.5182, allocations: 1.578 MB / 0.6396 GB, free: 7.645 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001947/0.5184, allocations: 27.92 kB / 0.6397 GB, free: 7.617 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02138/0.5398, allocations: 10.76 MB / 0.6502 GB, free: 12.51 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.339e-06/0.5398, allocations: 3.938 kB / 0.6502 GB, free: 12.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01587/0.5557, allocations: 4.601 MB / 0.6547 GB, free: 7.875 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005882/0.5563, allocations: 207.5 kB / 0.6549 GB, free: 7.652 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004079/0.5568, allocations: 20 kB / 0.6549 GB, free: 7.633 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001361/0.5581, allocations: 87.89 kB / 0.655 GB, free: 7.547 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007199/0.5589, allocations: 180.7 kB / 0.6551 GB, free: 7.371 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001429/0.559, allocations: 23.94 kB / 0.6552 GB, free: 7.348 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001194/0.5602, allocations: 0.6434 MB / 0.6558 GB, free: 6.695 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5603, allocations: 4 kB / 0.6558 GB, free: 6.691 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001879/0.5621, allocations: 435.6 kB / 0.6562 GB, free: 6.266 MB / 462.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.01591/0.5781, allocations: 5.199 MB / 0.6613 GB, free: 1.023 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006845/0.5849, allocations: 2.316 MB / 0.6636 GB, free: 14.69 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.67e-06/0.585, allocations: 4 kB / 0.6636 GB, free: 14.69 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004287/0.5893, allocations: 1.317 MB / 0.6648 GB, free: 13.36 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00203/0.5914, allocations: 342.2 kB / 0.6652 GB, free: 13.01 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04106/0.6324, allocations: 16.02 MB / 0.6808 GB, free: 12.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007102/0.6332, allocations: 1.073 MB / 0.6819 GB, free: 11.4 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.000498/0.6337, allocations: 99.34 kB / 0.682 GB, free: 11.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006701/0.6344, allocations: 439.3 kB / 0.6824 GB, free: 10.87 MB / 494.1 MB Notification: Performance of SimCode: time 8.31e-07/0.6344, allocations: 0 / 0.6824 GB, free: 10.87 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05809/0.6925, allocations: 30.25 MB / 0.7119 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002321/0.6928, allocations: 264 kB / 0.7122 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.664/3.356, allocations: 2 kB / 0.7122 GB, free: 12.57 MB / 0.5137 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=0.001 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discrete.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)