Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestLeadLag.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo", uses=false) Using package PowerGrids with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerGrids.Controls.Test.TestLeadLag,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestLeadLag",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestLeadLag,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestLeadLag",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002291/0.002291, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.827/1.827, allocations: 205.3 MB / 213.4 MB, free: 13.76 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00131/0.00131, allocations: 93.52 kB / 261.4 MB, free: 13.46 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo): time 0.05841/0.05841, allocations: 14.04 MB / 323.4 MB, free: 15.35 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.447e-05/2.45e-05, allocations: 4 kB / 382 MB, free: 72.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1079, allocations: 51.12 MB / 433.1 MB, free: 21.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3801/0.4881, allocations: 77.02 MB / 0.4981 GB, free: 11.9 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001976/0.4883, allocations: 66.77 kB / 0.4982 GB, free: 11.9 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006214/0.4945, allocations: 2.24 MB / 0.5004 GB, free: 11.45 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4946, allocations: 4 kB / 0.5004 GB, free: 11.45 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.491e-05/0.4946, allocations: 3.844 kB / 0.5004 GB, free: 11.45 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.00042/0.495, allocations: 392.6 kB / 0.5008 GB, free: 11.08 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.52e-05/0.4951, allocations: 11.53 kB / 0.5008 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.589e-05/0.4951, allocations: 11.59 kB / 0.5008 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003839/0.4955, allocations: 236.7 kB / 0.501 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.553e-05/0.4956, allocations: 3.844 kB / 0.501 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.431e-05/0.4956, allocations: 9.875 kB / 0.501 GB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001201/0.4957, allocations: 43.81 kB / 0.5011 GB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001598/0.4959, allocations: 92.05 kB / 0.5012 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.4959, allocations: 3.844 kB / 0.5012 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.022e-05/0.4959, allocations: 3.984 kB / 0.5012 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.496, allocations: 1.125 kB / 0.5012 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006705/0.4966, allocations: 0.5715 MB / 0.5017 GB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002883/0.4969, allocations: 104.4 kB / 0.5018 GB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.402e-05/0.497, allocations: 43.31 kB / 0.5019 GB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.497, allocations: 3.562 kB / 0.5019 GB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.639e-05/0.497, allocations: 34.56 kB / 0.5019 GB, free: 10.19 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.4971, allocations: 0 / 0.5019 GB, free: 10.19 MB / 330.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002214/0.4973, allocations: 74.86 kB / 0.502 GB, free: 10.15 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.548e-05/0.4973, allocations: 106.3 kB / 0.5021 GB, free: 10.02 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001146/0.4974, allocations: 135.9 kB / 0.5022 GB, free: 9.926 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.4975, allocations: 25.77 kB / 0.5022 GB, free: 9.895 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.684e-05/0.4975, allocations: 122.7 kB / 0.5024 GB, free: 9.797 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.982e-05/0.4976, allocations: 22.22 kB / 0.5024 GB, free: 9.781 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.022e-06/0.4976, allocations: 0.875 kB / 0.5024 GB, free: 9.781 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.798e-05/0.4977, allocations: 321.2 kB / 0.5027 GB, free: 9.469 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.826e-05/0.4977, allocations: 14.06 kB / 0.5027 GB, free: 9.469 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.23e-05/0.4977, allocations: 51.94 kB / 0.5027 GB, free: 9.418 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.902e-05/0.4978, allocations: 24.41 kB / 0.5028 GB, free: 9.414 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.4978, allocations: 0 / 0.5028 GB, free: 9.414 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002257/0.498, allocations: 113.3 kB / 0.5029 GB, free: 9.363 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.4981, allocations: 7.656 kB / 0.5029 GB, free: 9.359 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.4981, allocations: 8.328 kB / 0.5029 GB, free: 9.355 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001958/0.4983, allocations: 35.91 kB / 0.5029 GB, free: 9.344 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.04e-05/0.4984, allocations: 16.23 kB / 0.5029 GB, free: 9.344 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00084/0.4992, allocations: 1.314 MB / 0.5042 GB, free: 8.129 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.737e-05/0.4993, allocations: 14.8 kB / 0.5042 GB, free: 8.121 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.158e-05/0.4993, allocations: 3.688 kB / 0.5042 GB, free: 8.121 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.17e-05/0.4994, allocations: 101 kB / 0.5043 GB, free: 8.016 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001302/0.4995, allocations: 87.89 kB / 0.5044 GB, free: 7.969 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.459e-05/0.4996, allocations: 7.594 kB / 0.5044 GB, free: 7.965 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.657e-05/0.4996, allocations: 17.61 kB / 0.5044 GB, free: 7.961 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.4996, allocations: 4.031 kB / 0.5045 GB, free: 7.961 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.894e-06/0.4996, allocations: 4 kB / 0.5045 GB, free: 7.957 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.4997, allocations: 0 / 0.5045 GB, free: 7.957 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002283/0.4999, allocations: 180.9 kB / 0.5046 GB, free: 7.793 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.4999, allocations: 0 / 0.5046 GB, free: 7.793 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.866e-05/0.5, allocations: 18.36 kB / 0.5046 GB, free: 7.793 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.5, allocations: 4.062 kB / 0.5047 GB, free: 7.789 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.5, allocations: 7.688 kB / 0.5047 GB, free: 7.789 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.5, allocations: 0 / 0.5047 GB, free: 7.789 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/0.5001, allocations: 3.938 kB / 0.5047 GB, free: 7.785 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001882/0.5002, allocations: 365.8 kB / 0.505 GB, free: 7.465 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.043e-05/0.5003, allocations: 95.7 kB / 0.5051 GB, free: 7.363 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.519e-05/0.5003, allocations: 0 / 0.5051 GB, free: 7.363 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001537/0.5005, allocations: 3.812 kB / 0.5051 GB, free: 7.363 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.216e-05/0.5005, allocations: 6.609 kB / 0.5051 GB, free: 7.363 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.232e-06/0.5005, allocations: 3.688 kB / 0.5051 GB, free: 7.363 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.434e-05/0.5006, allocations: 114 kB / 0.5052 GB, free: 7.289 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5006, allocations: 0 / 0.5052 GB, free: 7.289 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003353/0.5009, allocations: 27.2 kB / 0.5052 GB, free: 7.281 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (leadLag.firstOrder.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003374/0.5013, allocations: 1.03 MB / 0.5063 GB, free: 6.301 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003222/0.5016, allocations: 183.8 kB / 0.5064 GB, free: 6.184 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.5016, allocations: 0 / 0.5064 GB, free: 6.184 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.345e-05/0.5017, allocations: 18.81 kB / 0.5064 GB, free: 6.18 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003176/0.502, allocations: 26.55 kB / 0.5065 GB, free: 6.176 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005303/0.5025, allocations: 213.9 kB / 0.5067 GB, free: 6.016 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001431/0.5027, allocations: 0.707 MB / 0.5074 GB, free: 5.32 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.75e-05/0.5028, allocations: 10.8 kB / 0.5074 GB, free: 5.312 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.374e-05/0.5028, allocations: 34.55 kB / 0.5074 GB, free: 5.305 MB / 330.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5028, allocations: 0 / 0.5074 GB, free: 5.305 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02027/0.5231, allocations: 2.003 MB / 0.5094 GB, free: 4.902 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001925/0.5233, allocations: 111.6 kB / 0.5095 GB, free: 4.715 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.581/2.104, allocations: 0 / 0.5095 GB, free: 4.715 MB / 330.7 MB (rm -f PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestLeadLag.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_PowerGrids_Controls_Test_TestLeadLag_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Controls_Test_TestLeadLag.fmu > PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1)