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.00125/0.00125, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.841/1.841, allocations: 205.2 MB / 218.5 MB, free: 9.215 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.0008795/0.0008796, allocations: 88.53 kB / 266.6 MB, free: 9.285 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo): time 0.06034/0.06034, allocations: 14.03 MB / 328.7 MB, free: 11.06 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.333e-05/4.376e-05, allocations: 4 kB / 389.2 MB, free: 66.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1116, allocations: 51.12 MB / 440.4 MB, free: 15.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4161/0.5278, allocations: 77.68 MB / 0.5059 GB, free: 12.26 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002237/0.528, allocations: 64.45 kB / 0.506 GB, free: 12.26 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00615/0.5342, allocations: 2.266 MB / 0.5082 GB, free: 11.44 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.5342, allocations: 0 / 0.5082 GB, free: 11.44 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.729e-05/0.5343, allocations: 0 / 0.5082 GB, free: 11.44 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.0004417/0.5347, allocations: 401.7 kB / 0.5086 GB, free: 11.05 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.578e-05/0.5348, allocations: 11.5 kB / 0.5086 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.71e-05/0.5348, allocations: 38.17 kB / 0.5086 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.319e-05/0.5349, allocations: 15.62 kB / 0.5086 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003591/0.5353, allocations: 232.7 kB / 0.5088 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.104e-05/0.5353, allocations: 13.34 kB / 0.5088 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.544e-05/0.5353, allocations: 6.812 kB / 0.5089 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002106/0.5355, allocations: 113.3 kB / 0.509 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.5356, allocations: 0 / 0.509 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.622e-05/0.5356, allocations: 7 kB / 0.509 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.395e-06/0.5356, allocations: 3.844 kB / 0.509 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001022/0.5357, allocations: 51.14 kB / 0.509 GB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006856/0.5364, allocations: 0.5972 MB / 0.5096 GB, free: 10.15 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003068/0.5367, allocations: 111 kB / 0.5097 GB, free: 10.07 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.289e-05/0.5368, allocations: 40.91 kB / 0.5098 GB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.958e-05/0.5368, allocations: 3.906 kB / 0.5098 GB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.752e-05/0.5368, allocations: 41.62 kB / 0.5098 GB, free: 9.996 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.5369, allocations: 0 / 0.5098 GB, free: 9.996 MB / 330.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002267/0.5371, allocations: 81.56 kB / 0.5099 GB, free: 9.953 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.64e-05/0.5371, allocations: 106.9 kB / 0.51 GB, free: 9.824 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.671e-05/0.5372, allocations: 134.3 kB / 0.5101 GB, free: 9.723 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.316e-05/0.5373, allocations: 29.02 kB / 0.5101 GB, free: 9.691 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.779e-05/0.5373, allocations: 113.5 kB / 0.5102 GB, free: 9.594 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.849e-05/0.5373, allocations: 23.61 kB / 0.5103 GB, free: 9.578 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.861e-06/0.5373, allocations: 3.188 kB / 0.5103 GB, free: 9.578 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.132e-05/0.5374, allocations: 317.8 kB / 0.5106 GB, free: 9.262 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.081e-05/0.5374, allocations: 16.88 kB / 0.5106 GB, free: 9.262 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.95e-05/0.5375, allocations: 58.03 kB / 0.5106 GB, free: 9.207 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.92e-05/0.5376, allocations: 23.3 kB / 0.5107 GB, free: 9.203 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.5376, allocations: 0 / 0.5107 GB, free: 9.203 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002368/0.5378, allocations: 132.2 kB / 0.5108 GB, free: 9.129 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.5379, allocations: 8.469 kB / 0.5108 GB, free: 9.129 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.5379, allocations: 0 / 0.5108 GB, free: 9.129 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001921/0.5381, allocations: 35.16 kB / 0.5108 GB, free: 9.113 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.018e-05/0.5382, allocations: 15.52 kB / 0.5108 GB, free: 9.109 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008951/0.5391, allocations: 1.366 MB / 0.5122 GB, free: 7.797 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.204e-05/0.5392, allocations: 7.281 kB / 0.5122 GB, free: 7.797 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.343e-05/0.5392, allocations: 7.875 kB / 0.5122 GB, free: 7.793 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.379e-05/0.5393, allocations: 111.6 kB / 0.5123 GB, free: 7.684 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.164e-05/0.5393, allocations: 7.75 kB / 0.5123 GB, free: 7.68 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.073e-05/0.5394, allocations: 18.42 kB / 0.5123 GB, free: 7.668 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.5394, allocations: 0 / 0.5123 GB, free: 7.668 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.5394, allocations: 3.844 kB / 0.5123 GB, free: 7.668 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.5394, allocations: 0 / 0.5123 GB, free: 7.668 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002545/0.5397, allocations: 213.3 kB / 0.5125 GB, free: 7.457 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.5397, allocations: 4 kB / 0.5125 GB, free: 7.453 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001026/0.5398, allocations: 27.42 kB / 0.5126 GB, free: 7.441 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.5398, allocations: 0 / 0.5126 GB, free: 7.441 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.075e-05/0.5398, allocations: 0 / 0.5126 GB, free: 7.441 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.5398, allocations: 3.844 kB / 0.5126 GB, free: 7.441 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.5398, allocations: 3.984 kB / 0.5126 GB, free: 7.438 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000216/0.54, allocations: 378.2 kB / 0.5129 GB, free: 7.105 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.052e-05/0.5401, allocations: 84.95 kB / 0.513 GB, free: 7.004 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.428e-05/0.5401, allocations: 7.75 kB / 0.513 GB, free: 7 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/0.5403, allocations: 7.344 kB / 0.513 GB, free: 7 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.28e-05/0.5403, allocations: 11.78 kB / 0.513 GB, free: 6.992 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.52e-06/0.5403, allocations: 0 / 0.513 GB, free: 6.992 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.369e-05/0.5404, allocations: 120.9 kB / 0.5131 GB, free: 6.91 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5404, allocations: 0 / 0.5131 GB, free: 6.91 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002959/0.5407, allocations: 24.97 kB / 0.5132 GB, free: 6.91 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.0003857/0.5411, allocations: 1.041 MB / 0.5142 GB, free: 5.914 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003432/0.5415, allocations: 188.6 kB / 0.5144 GB, free: 5.789 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.5415, allocations: 0 / 0.5144 GB, free: 5.789 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.609e-05/0.5415, allocations: 22.56 kB / 0.5144 GB, free: 5.789 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000317/0.5419, allocations: 24.8 kB / 0.5144 GB, free: 5.781 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005793/0.5424, allocations: 216.1 kB / 0.5146 GB, free: 5.605 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001655/0.5426, allocations: 0.7075 MB / 0.5153 GB, free: 4.895 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.153e-05/0.5427, allocations: 12.45 kB / 0.5153 GB, free: 4.883 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.007e-05/0.5428, allocations: 33.64 kB / 0.5154 GB, free: 4.871 MB / 330.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5428, allocations: 0 / 0.5154 GB, free: 4.871 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01425/0.557, allocations: 2.412 MB / 0.5177 GB, free: 3.703 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001579/0.5572, allocations: 155.8 kB / 0.5179 GB, free: 3.48 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.589/2.146, allocations: 0 / 0.5179 GB, free: 3.48 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)