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.00196/0.00196, 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.91/1.91, allocations: 205.3 MB / 213.4 MB, free: 13.77 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.0009358/0.0009357, allocations: 90.22 kB / 261.4 MB, free: 13.45 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo): time 0.06175/0.06175, allocations: 14.04 MB / 323.4 MB, free: 15.34 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.01e-05/2.005e-05, allocations: 0 / 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.389/0.4969, allocations: 79.23 MB / 0.5003 GB, free: 12.05 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001844/0.4972, allocations: 72.69 kB / 0.5004 GB, free: 12.05 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01606/0.5133, allocations: 6.171 MB / 0.5064 GB, free: 10.49 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.5133, allocations: 4 kB / 0.5064 GB, free: 10.49 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.113e-05/0.5133, allocations: 8.094 kB / 0.5064 GB, free: 10.48 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.0008322/0.5142, allocations: 0.5795 MB / 0.507 GB, free: 9.973 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.5142, allocations: 11.59 kB / 0.507 GB, free: 9.973 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.165e-05/0.5143, allocations: 31 kB / 0.507 GB, free: 9.957 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004053/0.5147, allocations: 302.9 kB / 0.5073 GB, free: 9.703 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.747e-05/0.5148, allocations: 7.75 kB / 0.5073 GB, free: 9.703 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.125e-05/0.5148, allocations: 11.75 kB / 0.5073 GB, free: 9.703 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002726/0.5151, allocations: 155.4 kB / 0.5075 GB, free: 9.684 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003309/0.5154, allocations: 233.5 kB / 0.5077 GB, free: 9.547 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.5155, allocations: 0 / 0.5077 GB, free: 9.547 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.71e-05/0.5155, allocations: 3.875 kB / 0.5077 GB, free: 9.547 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.5155, allocations: 3.875 kB / 0.5077 GB, free: 9.547 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001006/0.5165, allocations: 1.024 MB / 0.5087 GB, free: 8.75 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003527/0.5169, allocations: 220.6 kB / 0.5089 GB, free: 8.68 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001277/0.517, allocations: 119.4 kB / 0.509 GB, free: 8.652 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.909e-05/0.5171, allocations: 11.23 kB / 0.509 GB, free: 8.648 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000238/0.5173, allocations: 199.2 kB / 0.5092 GB, free: 8.52 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 1.363e-06/0.5173, allocations: 0 / 0.5092 GB, free: 8.52 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0006468/0.518, allocations: 278.3 kB / 0.5095 GB, free: 8.449 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.139e-05/0.518, allocations: 158.1 kB / 0.5096 GB, free: 8.262 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002232/0.5183, allocations: 221.2 kB / 0.5099 GB, free: 8.145 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.984e-05/0.5183, allocations: 29.64 kB / 0.5099 GB, free: 8.109 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000122/0.5185, allocations: 169.8 kB / 0.51 GB, free: 7.992 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.279e-05/0.5185, allocations: 64.77 kB / 0.5101 GB, free: 7.945 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.571e-05/0.5186, allocations: 0 / 0.5101 GB, free: 7.945 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.5187, allocations: 338.8 kB / 0.5104 GB, free: 7.625 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.5188, allocations: 76.33 kB / 0.5105 GB, free: 7.621 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001446/0.519, allocations: 163.9 kB / 0.5107 GB, free: 7.527 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001514/0.5191, allocations: 89.42 kB / 0.5107 GB, free: 7.508 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.5191, allocations: 0 / 0.5107 GB, free: 7.508 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009539/0.5201, allocations: 0.4916 MB / 0.5112 GB, free: 7.355 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001783/0.5203, allocations: 0.5601 MB / 0.5118 GB, free: 6.766 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.5203, allocations: 3.781 kB / 0.5118 GB, free: 6.766 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002911/0.5206, allocations: 85.16 kB / 0.5119 GB, free: 6.742 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001463/0.5208, allocations: 31.17 kB / 0.5119 GB, free: 6.734 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008667/0.5216, allocations: 1.268 MB / 0.5131 GB, free: 5.637 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000248/0.5219, allocations: 42.44 kB / 0.5132 GB, free: 5.621 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.554e-05/0.5219, allocations: 14.81 kB / 0.5132 GB, free: 5.621 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.005e-06/0.5219, allocations: 7.844 kB / 0.5132 GB, free: 5.617 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003818/0.5223, allocations: 247.7 kB / 0.5134 GB, free: 5.578 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.354e-06/0.5223, allocations: 0 / 0.5134 GB, free: 5.578 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.017e-06/0.5224, allocations: 3.781 kB / 0.5134 GB, free: 5.578 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001894/0.5226, allocations: 57.28 kB / 0.5135 GB, free: 5.562 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.388e-06/0.5226, allocations: 3.688 kB / 0.5135 GB, free: 5.562 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001454/0.5227, allocations: 27.67 kB / 0.5135 GB, free: 5.543 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.932e-05/0.5227, allocations: 11.62 kB / 0.5135 GB, free: 5.543 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.0001335/0.5229, allocations: 155 kB / 0.5137 GB, free: 5.395 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004033/0.5233, allocations: 296.6 kB / 0.514 GB, free: 5.316 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.884e-05/0.5233, allocations: 31.03 kB / 0.514 GB, free: 5.301 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.996e-05/0.5234, allocations: 31.02 kB / 0.514 GB, free: 5.293 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.5234, allocations: 144 / 0.514 GB, free: 5.293 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.5235, allocations: 7.938 kB / 0.514 GB, free: 5.285 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.5235, allocations: 7.875 kB / 0.514 GB, free: 5.281 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002375/0.5237, allocations: 293.3 kB / 0.5143 GB, free: 5.066 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.5237, allocations: 0 / 0.5143 GB, free: 5.066 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002488/0.524, allocations: 54.09 kB / 0.5144 GB, free: 5.055 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.524, allocations: 0 / 0.5144 GB, free: 5.055 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.434e-05/0.524, allocations: 11.77 kB / 0.5144 GB, free: 5.051 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.524, allocations: 7.906 kB / 0.5144 GB, free: 5.047 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.524, allocations: 0 / 0.5144 GB, free: 5.047 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005414/0.5246, allocations: 454.7 kB / 0.5148 GB, free: 4.902 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.439e-05/0.5246, allocations: 99.92 kB / 0.5149 GB, free: 4.793 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.093e-05/0.5247, allocations: 15.23 kB / 0.5149 GB, free: 4.785 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002153/0.5249, allocations: 38.34 kB / 0.515 GB, free: 4.773 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.155e-05/0.525, allocations: 34.53 kB / 0.515 GB, free: 4.754 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.38e-05/0.525, allocations: 11.25 kB / 0.515 GB, free: 4.754 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001159/0.5251, allocations: 171.5 kB / 0.5152 GB, free: 4.66 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5252, allocations: 0 / 0.5152 GB, free: 4.66 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004274/0.5256, allocations: 111.9 kB / 0.5153 GB, free: 4.633 MB / 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.0007722/0.5264, allocations: 1.054 MB / 0.5163 GB, free: 3.895 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008945/0.5273, allocations: 0.5803 MB / 0.5169 GB, free: 3.707 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.5273, allocations: 0 / 0.5169 GB, free: 3.707 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001546/0.5275, allocations: 189 kB / 0.517 GB, free: 3.629 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003235/0.5278, allocations: 52.98 kB / 0.5171 GB, free: 3.613 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007608/0.5286, allocations: 443.6 kB / 0.5175 GB, free: 3.352 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001615/0.5287, allocations: 0.7734 MB / 0.5183 GB, free: 2.609 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001997/0.5289, allocations: 42.42 kB / 0.5183 GB, free: 2.586 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001011/0.529, allocations: 78.25 kB / 0.5184 GB, free: 2.57 MB / 330.7 MB Notification: Performance of SimCode: time 2.81e-07/0.5291, allocations: 0 / 0.5184 GB, free: 2.57 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02299/0.552, allocations: 6.514 MB / 0.5248 GB, free: 14.73 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001939/0.5523, allocations: 143.7 kB / 0.5249 GB, free: 14.54 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.971/2.523, allocations: 2.391 kB / 0.5249 GB, free: 14.54 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)