Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.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.TestFirstOrderWithNonWindupLimiter,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestFirstOrderWithNonWindupLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestFirstOrderWithNonWindupLimiter",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.001112/0.001112, allocations: 174.6 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.837/1.837, allocations: 205.2 MB / 218.5 MB, free: 9.219 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.0008958/0.0008957, allocations: 94.56 kB / 266.6 MB, free: 9.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo): time 0.06022/0.06022, allocations: 14.02 MB / 328.7 MB, free: 11.05 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.807e-05/3.829e-05, allocations: 4 kB / 389.2 MB, free: 66.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1211, allocations: 51.11 MB / 440.4 MB, free: 15.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4057/0.5268, allocations: 79.89 MB / 0.5081 GB, free: 11.94 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001962/0.5271, allocations: 64.69 kB / 0.5081 GB, free: 11.93 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01607/0.5431, allocations: 6.221 MB / 0.5142 GB, free: 9.094 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.5432, allocations: 3.984 kB / 0.5142 GB, free: 9.09 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.536e-05/0.5432, allocations: 8.219 kB / 0.5142 GB, free: 9.082 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: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.0008674/0.5441, allocations: 0.5787 MB / 0.5148 GB, free: 8.477 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.5442, allocations: 8.031 kB / 0.5148 GB, free: 8.469 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.036e-05/0.5442, allocations: 50.05 kB / 0.5148 GB, free: 8.418 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.597e-05/0.5443, allocations: 31.62 kB / 0.5149 GB, free: 8.387 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004296/0.5448, allocations: 305 kB / 0.5151 GB, free: 8.086 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.914e-05/0.5448, allocations: 19.61 kB / 0.5152 GB, free: 8.074 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.552e-05/0.5449, allocations: 27.39 kB / 0.5152 GB, free: 8.051 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003813/0.5452, allocations: 258.1 kB / 0.5154 GB, free: 7.824 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.5453, allocations: 3.984 kB / 0.5154 GB, free: 7.82 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.747e-05/0.5453, allocations: 7.875 kB / 0.5154 GB, free: 7.816 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.5453, allocations: 8 kB / 0.5155 GB, free: 7.809 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002433/0.5456, allocations: 154.3 kB / 0.5156 GB, free: 7.703 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001097/0.5467, allocations: 1.062 MB / 0.5166 GB, free: 6.703 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004005/0.5471, allocations: 225.9 kB / 0.5169 GB, free: 6.523 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001523/0.5473, allocations: 125.3 kB / 0.517 GB, free: 6.438 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.409e-05/0.5473, allocations: 7.938 kB / 0.517 GB, free: 6.43 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002536/0.5476, allocations: 201.7 kB / 0.5172 GB, free: 6.242 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 1.804e-06/0.5476, allocations: 0 / 0.5172 GB, free: 6.242 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005417/0.5481, allocations: 312.5 kB / 0.5175 GB, free: 5.984 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.058e-05/0.5482, allocations: 162.2 kB / 0.5176 GB, free: 5.789 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001939/0.5484, allocations: 228.6 kB / 0.5178 GB, free: 5.594 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.683e-05/0.5484, allocations: 32.39 kB / 0.5179 GB, free: 5.559 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.896e-05/0.5485, allocations: 162.5 kB / 0.518 GB, free: 5.434 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.061e-05/0.5486, allocations: 68.12 kB / 0.5181 GB, free: 5.379 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.652e-05/0.5486, allocations: 7.375 kB / 0.5181 GB, free: 5.375 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.682e-05/0.5487, allocations: 335.4 kB / 0.5184 GB, free: 5.051 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.5488, allocations: 82.67 kB / 0.5185 GB, free: 4.996 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001646/0.549, allocations: 171.6 kB / 0.5187 GB, free: 4.836 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001484/0.5491, allocations: 109.2 kB / 0.5188 GB, free: 4.746 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.5491, allocations: 3.953 kB / 0.5188 GB, free: 4.742 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009568/0.5501, allocations: 0.5264 MB / 0.5193 GB, free: 4.277 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001678/0.5503, allocations: 0.5612 MB / 0.5198 GB, free: 3.688 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.5503, allocations: 4 kB / 0.5198 GB, free: 3.684 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002571/0.5505, allocations: 85.72 kB / 0.5199 GB, free: 3.617 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/0.5507, allocations: 31.92 kB / 0.5199 GB, free: 3.586 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009578/0.5517, allocations: 1.248 MB / 0.5212 GB, free: 2.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002597/0.5519, allocations: 59.52 kB / 0.5212 GB, free: 2.285 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.449e-05/0.552, allocations: 11.62 kB / 0.5212 GB, free: 2.277 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.087e-05/0.552, allocations: 4 kB / 0.5212 GB, free: 2.273 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004082/0.5524, allocations: 299.8 kB / 0.5215 GB, free: 2.039 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.387e-06/0.5524, allocations: 4 kB / 0.5215 GB, free: 2.035 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.63e-06/0.5525, allocations: 8.156 kB / 0.5215 GB, free: 2.027 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001885/0.5527, allocations: 50.78 kB / 0.5216 GB, free: 1.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.5527, allocations: 11.89 kB / 0.5216 GB, free: 1.969 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001562/0.5528, allocations: 26.58 kB / 0.5216 GB, free: 1.945 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.424e-05/0.5529, allocations: 11.94 kB / 0.5216 GB, free: 1.938 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,inputSignal.a,inputSignal.b,inputSignal.last,$PRE.inputSignal.nextEvent,inputSignal.nextEvent,inputSignal.nextEventScaled,firstOrderNegativeGain.I.local_reset,firstOrderPositiveGain.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 15 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001397/0.553, allocations: 161.3 kB / 0.5218 GB, free: 1.773 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.449e-05/0.5531, allocations: 35.66 kB / 0.5218 GB, free: 1.738 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.369e-05/0.5531, allocations: 35.7 kB / 0.5219 GB, free: 1.715 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.93e-06/0.5532, allocations: 0 / 0.5219 GB, free: 1.715 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/0.5532, allocations: 0 / 0.5219 GB, free: 1.715 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.5532, allocations: 7.953 kB / 0.5219 GB, free: 1.707 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002975/0.5535, allocations: 328 kB / 0.5222 GB, free: 1.398 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.5535, allocations: 7.984 kB / 0.5222 GB, free: 1.391 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002411/0.5537, allocations: 51.97 kB / 0.5222 GB, free: 1.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.5538, allocations: 0 / 0.5222 GB, free: 1.34 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.763e-05/0.5538, allocations: 10.48 kB / 0.5222 GB, free: 1.332 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.5538, allocations: 4 kB / 0.5222 GB, free: 1.328 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.5538, allocations: 0 / 0.5222 GB, free: 1.328 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005975/0.5544, allocations: 0.5033 MB / 0.5227 GB, free: 0.9062 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.055e-05/0.5545, allocations: 100.8 kB / 0.5228 GB, free: 0.7891 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.92e-05/0.5545, allocations: 11.42 kB / 0.5228 GB, free: 0.7812 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002139/0.5548, allocations: 35.59 kB / 0.5229 GB, free: 0.75 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.006e-05/0.5549, allocations: 31.16 kB / 0.5229 GB, free: 0.7227 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.956e-05/0.5549, allocations: 15.81 kB / 0.5229 GB, free: 0.7109 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001596/0.5551, allocations: 183.9 kB / 0.5231 GB, free: 0.5586 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5551, allocations: 0 / 0.5231 GB, free: 0.5586 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004537/0.5555, allocations: 115.4 kB / 0.5232 GB, free: 464 kB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (firstOrderPositiveGain.I.y,firstOrderNegativeGain.I.y) * Number of discrete variables: 6 ($whenCondition1,inputSignal.a,inputSignal.b,inputSignal.last,inputSignal.nextEvent,inputSignal.nextEventScaled) * Number of discrete states: 6 (inputSignal.nextEvent,inputSignal.last,inputSignal.nextEventScaled,inputSignal.b,inputSignal.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 16 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001166/0.5567, allocations: 1.112 MB / 0.5243 GB, free: 15.42 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001163/0.5579, allocations: 0.6068 MB / 0.5249 GB, free: 14.91 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.5579, allocations: 0 / 0.5249 GB, free: 14.91 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002254/0.5581, allocations: 190.2 kB / 0.5251 GB, free: 14.77 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003292/0.5585, allocations: 47.02 kB / 0.5251 GB, free: 14.73 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001016/0.5595, allocations: 461.5 kB / 0.5256 GB, free: 14.3 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004044/0.5599, allocations: 0.7684 MB / 0.5263 GB, free: 13.51 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002454/0.5602, allocations: 55.14 kB / 0.5264 GB, free: 13.45 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001224/0.5603, allocations: 82.27 kB / 0.5264 GB, free: 13.42 MB / 346.7 MB Notification: Performance of SimCode: time 6.51e-07/0.5603, allocations: 0 / 0.5264 GB, free: 13.42 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02645/0.5868, allocations: 7.165 MB / 0.5334 GB, free: 6.383 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002451/0.5871, allocations: 195.6 kB / 0.5336 GB, free: 6.152 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.123/2.71, allocations: 0 / 0.5336 GB, free: 6.152 MB / 346.7 MB (rm -f PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_PowerGrids_Controls_Test_TestFirstOrderWithNonWindupLimiter_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Controls_Test_TestFirstOrderWithNonWindupLimiter.fmu > PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter.pipe 2>&1)