Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.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.TestLeadLagWithNonWindupLimiter,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestLeadLagWithNonWindupLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestLeadLagWithNonWindupLimiter",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.006959/0.006959, allocations: 179.8 kB / 7.458 MB, free: 2.5 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.562/1.562, allocations: 205.2 MB / 213.1 MB, free: 13.86 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.001175/0.001175, allocations: 89.83 kB / 261.1 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo): time 0.06286/0.06286, allocations: 14.04 MB / 323 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2757/0.3386, allocations: 58.36 MB / 381.4 MB, free: 73.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.4461, allocations: 51.11 MB / 432.5 MB, free: 21.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3948/0.841, allocations: 78.97 MB / 0.4995 GB, free: 11.91 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003418/0.8414, allocations: 68.09 kB / 0.4996 GB, free: 11.91 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.02288/0.8643, allocations: 6.46 MB / 0.5059 GB, free: 10.25 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.565e-05/0.8644, allocations: 8.25 kB / 0.5059 GB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001886/0.8646, allocations: 38.78 kB / 0.5059 GB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006846/0.8653, allocations: 319.2 kB / 0.5062 GB, free: 9.965 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.909e-05/0.8653, allocations: 6.875 kB / 0.5062 GB, free: 9.965 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.432e-05/0.8654, allocations: 12.38 kB / 0.5062 GB, free: 9.965 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004194/0.8658, allocations: 148.5 kB / 0.5064 GB, free: 9.945 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005025/0.8664, allocations: 246.2 kB / 0.5066 GB, free: 9.812 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.756e-05/0.8664, allocations: 4.938 kB / 0.5066 GB, free: 9.809 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.485e-05/0.8664, allocations: 1.062 kB / 0.5066 GB, free: 9.809 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.366e-05/0.8664, allocations: 8.844 kB / 0.5066 GB, free: 9.805 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001661/0.8681, allocations: 1.035 MB / 0.5076 GB, free: 9 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005458/0.8687, allocations: 194.2 kB / 0.5078 GB, free: 8.938 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002112/0.8689, allocations: 112.7 kB / 0.5079 GB, free: 8.914 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.328e-05/0.869, allocations: 2.891 kB / 0.5079 GB, free: 8.914 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002734/0.8692, allocations: 185.6 kB / 0.5081 GB, free: 8.793 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 2.716e-06/0.8693, allocations: 4 kB / 0.5081 GB, free: 8.789 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007251/0.87, allocations: 233.4 kB / 0.5083 GB, free: 8.719 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.581e-05/0.8701, allocations: 162.9 kB / 0.5085 GB, free: 8.527 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000358/0.8705, allocations: 224.1 kB / 0.5087 GB, free: 8.422 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.275e-05/0.8705, allocations: 28.05 kB / 0.5087 GB, free: 8.391 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001356/0.8707, allocations: 142.6 kB / 0.5089 GB, free: 8.27 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001008/0.8708, allocations: 73.62 kB / 0.5089 GB, free: 8.215 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.545e-05/0.8708, allocations: 1.094 kB / 0.5089 GB, free: 8.215 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.8709, allocations: 340.9 kB / 0.5093 GB, free: 7.891 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001623/0.8711, allocations: 76.7 kB / 0.5093 GB, free: 7.883 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002345/0.8713, allocations: 161.5 kB / 0.5095 GB, free: 7.777 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002545/0.8716, allocations: 92.89 kB / 0.5096 GB, free: 7.758 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.8716, allocations: 0 / 0.5096 GB, free: 7.758 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001106/0.8727, allocations: 404 kB / 0.51 GB, free: 7.621 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001698/0.8729, allocations: 0.5263 MB / 0.5105 GB, free: 7.07 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.8729, allocations: 2.188 kB / 0.5105 GB, free: 7.07 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003875/0.8733, allocations: 97.02 kB / 0.5106 GB, free: 7.039 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001534/0.8735, allocations: 28.61 kB / 0.5106 GB, free: 7.031 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007796/0.8743, allocations: 1.171 MB / 0.5117 GB, free: 5.965 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002942/0.8746, allocations: 31.27 kB / 0.5118 GB, free: 5.953 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.64e-05/0.8747, allocations: 13.09 kB / 0.5118 GB, free: 5.949 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.206e-05/0.8747, allocations: 3.625 kB / 0.5118 GB, free: 5.949 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005952/0.8753, allocations: 251.2 kB / 0.512 GB, free: 5.887 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.8753, allocations: 1.25 kB / 0.512 GB, free: 5.887 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002075/0.8755, allocations: 70.72 kB / 0.5121 GB, free: 5.859 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001366/0.8757, allocations: 32.84 kB / 0.5121 GB, free: 5.848 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002335/0.878, allocations: 2.85 MB / 0.5149 GB, free: 3.195 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002407/0.8783, allocations: 21.66 kB / 0.5149 GB, free: 3.184 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.376e-05/0.8783, allocations: 15.92 kB / 0.515 GB, free: 3.18 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: leadLagNegativeGain.gain_dir.y:VARIABLE() "Output signal connector" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: leadLagPositiveGain.gain_dir.y:VARIABLE() "Output signal connector" type: Real 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,leadLagNegativeGain.integ_fb.local_reset,leadLagPositiveGain.integ_fb.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 13 * 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 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002482/0.8786, allocations: 153.1 kB / 0.5151 GB, free: 3.031 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.656e-05/0.8786, allocations: 26.62 kB / 0.5151 GB, free: 3.02 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001257/0.8788, allocations: 27.73 kB / 0.5151 GB, free: 3.012 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.227e-06/0.8788, allocations: 6.281 kB / 0.5152 GB, free: 3.008 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.8788, allocations: 0 / 0.5152 GB, free: 3.008 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.387e-06/0.8788, allocations: 9.141 kB / 0.5152 GB, free: 3 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003746/0.8792, allocations: 291 kB / 0.5154 GB, free: 2.789 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.8792, allocations: 7.984 kB / 0.5154 GB, free: 2.781 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002463/0.8795, allocations: 44.66 kB / 0.5155 GB, free: 2.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.252e-06/0.8795, allocations: 5.344 kB / 0.5155 GB, free: 2.766 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.552e-05/0.8795, allocations: 7.375 kB / 0.5155 GB, free: 2.766 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.202e-06/0.8795, allocations: 5.328 kB / 0.5155 GB, free: 2.762 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.8796, allocations: 0 / 0.5155 GB, free: 2.762 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007847/0.8803, allocations: 408.5 kB / 0.5159 GB, free: 2.613 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001024/0.8814, allocations: 0.8816 MB / 0.5168 GB, free: 2.094 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.034e-05/0.8815, allocations: 104.2 kB / 0.5169 GB, free: 1.98 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.444e-05/0.8815, allocations: 10.47 kB / 0.5169 GB, free: 1.977 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002219/0.8818, allocations: 24.95 kB / 0.5169 GB, free: 1.969 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.06e-05/0.8819, allocations: 17.16 kB / 0.5169 GB, free: 1.961 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-05/0.8819, allocations: 7.875 kB / 0.5169 GB, free: 1.961 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.000238/0.8821, allocations: 186.8 kB / 0.5171 GB, free: 1.867 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002018/0.8842, allocations: 116.5 kB / 0.5172 GB, free: 1.84 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (leadLagPositiveGain.integ_fb.y,leadLagNegativeGain.integ_fb.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.0004971/0.8847, allocations: 138 kB / 0.5173 GB, free: 1.742 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001435/0.8861, allocations: 0.5895 MB / 0.5179 GB, free: 1.426 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/0.8862, allocations: 1.438 kB / 0.5179 GB, free: 1.426 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002884/0.8865, allocations: 151.9 kB / 0.5181 GB, free: 1.383 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005728/0.887, allocations: 44.78 kB / 0.5181 GB, free: 1.371 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001948/0.889, allocations: 0.5397 MB / 0.5186 GB, free: 1.133 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005452/0.8896, allocations: 0.8027 MB / 0.5194 GB, free: 16.38 MB / 346.7 MB Notification: Performance of SimCode: time 1.052e-06/0.8896, allocations: 1.344 kB / 0.5194 GB, free: 16.38 MB / 346.7 MB (rm -f PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_PowerGrids_Controls_Test_TestLeadLagWithNonWindupLimiter_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Controls_Test_TestLeadLagWithNonWindupLimiter.fmu > PowerGrids_PowerGrids.Controls.Test.TestLeadLagWithNonWindupLimiter.pipe 2>&1)