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"}) [: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.005063/0.005064, allocations: 183.3 kB / 7.461 MB, free: 2.492 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.569/1.569, 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.001145/0.001145, allocations: 89.36 kB / 261.1 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo): time 0.05951/0.05951, allocations: 14.04 MB / 323.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3239/0.3835, allocations: 58.36 MB / 381.4 MB, free: 73.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.5044, allocations: 51.1 MB / 432.5 MB, free: 21.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3379/0.8423, allocations: 79.15 MB / 0.4997 GB, free: 11.91 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002791/0.8427, allocations: 69.02 kB / 0.4997 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: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.02055/0.8632, allocations: 6.474 MB / 0.5061 GB, free: 10.21 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.272e-05/0.8633, allocations: 9.625 kB / 0.5061 GB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001531/0.8635, allocations: 36.11 kB / 0.5061 GB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005794/0.864, allocations: 311.1 kB / 0.5064 GB, free: 9.938 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.601e-05/0.8641, allocations: 5.5 kB / 0.5064 GB, free: 9.938 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.509e-05/0.8642, allocations: 14.94 kB / 0.5064 GB, free: 9.934 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004047/0.8646, allocations: 146.3 kB / 0.5066 GB, free: 9.918 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004598/0.8651, allocations: 235.6 kB / 0.5068 GB, free: 9.785 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/0.8651, allocations: 1.375 kB / 0.5068 GB, free: 9.785 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.289e-05/0.8651, allocations: 5.359 kB / 0.5068 GB, free: 9.781 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.282e-05/0.8651, allocations: 8.125 kB / 0.5068 GB, free: 9.777 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001433/0.8666, allocations: 1.036 MB / 0.5078 GB, free: 8.977 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000469/0.8671, allocations: 186.2 kB / 0.508 GB, free: 8.918 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001898/0.8673, allocations: 107.9 kB / 0.5081 GB, free: 8.898 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.693e-05/0.8673, allocations: 6.344 kB / 0.5081 GB, free: 8.895 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002711/0.8676, allocations: 203.2 kB / 0.5083 GB, free: 8.762 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 3.797e-06/0.8676, allocations: 1.094 kB / 0.5083 GB, free: 8.762 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005881/0.8682, allocations: 235.2 kB / 0.5085 GB, free: 8.691 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.544e-05/0.8683, allocations: 158.7 kB / 0.5087 GB, free: 8.504 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002672/0.8686, allocations: 218.5 kB / 0.5089 GB, free: 8.395 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.322e-05/0.8686, allocations: 30.8 kB / 0.5089 GB, free: 8.359 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.661e-05/0.8687, allocations: 135.4 kB / 0.509 GB, free: 8.246 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.509e-05/0.8688, allocations: 70.5 kB / 0.5091 GB, free: 8.195 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.596e-05/0.8688, allocations: 1.906 kB / 0.5091 GB, free: 8.195 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.8689, allocations: 335.3 kB / 0.5094 GB, free: 7.875 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001831/0.8691, allocations: 80.83 kB / 0.5095 GB, free: 7.867 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000242/0.8694, allocations: 157.9 kB / 0.5096 GB, free: 7.773 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002975/0.8697, allocations: 88.84 kB / 0.5097 GB, free: 7.758 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.8697, allocations: 0 / 0.5097 GB, free: 7.758 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001459/0.8711, allocations: 466.8 kB / 0.5102 GB, free: 7.609 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002059/0.8714, allocations: 0.5375 MB / 0.5107 GB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/0.8714, allocations: 2.188 kB / 0.5107 GB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003158/0.8717, allocations: 84.22 kB / 0.5108 GB, free: 7.023 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001748/0.8719, allocations: 28.02 kB / 0.5108 GB, free: 7.02 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001245/0.8732, allocations: 1.338 MB / 0.5121 GB, free: 5.891 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003115/0.8735, allocations: 48.91 kB / 0.5122 GB, free: 5.871 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.12e-05/0.8735, allocations: 9 kB / 0.5122 GB, free: 5.871 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.8736, allocations: 8.031 kB / 0.5122 GB, free: 5.867 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004478/0.874, allocations: 188.2 kB / 0.5124 GB, free: 5.836 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.874, allocations: 1.031 kB / 0.5124 GB, free: 5.836 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.235e-06/0.874, allocations: 6.453 kB / 0.5124 GB, free: 5.832 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002384/0.8743, allocations: 58.38 kB / 0.5124 GB, free: 5.816 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.8743, allocations: 3.094 kB / 0.5124 GB, free: 5.816 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002025/0.8745, allocations: 21.55 kB / 0.5124 GB, free: 5.805 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.051e-05/0.8746, allocations: 12.38 kB / 0.5125 GB, free: 5.801 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.0002384/0.8748, allocations: 147.8 kB / 0.5126 GB, free: 5.656 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.385e-05/0.8749, allocations: 29.39 kB / 0.5126 GB, free: 5.641 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.244e-05/0.875, allocations: 27.75 kB / 0.5127 GB, free: 5.633 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.875, allocations: 2.188 kB / 0.5127 GB, free: 5.633 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.055e-05/0.875, allocations: 13.02 kB / 0.5127 GB, free: 5.621 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.875, allocations: 0 / 0.5127 GB, free: 5.621 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002956/0.8753, allocations: 294.9 kB / 0.5129 GB, free: 5.406 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.8753, allocations: 0 / 0.5129 GB, free: 5.406 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002951/0.8756, allocations: 65.58 kB / 0.513 GB, free: 5.387 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5e-06/0.8756, allocations: 1.875 kB / 0.513 GB, free: 5.387 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.376e-05/0.8757, allocations: 7.922 kB / 0.513 GB, free: 5.383 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.8757, allocations: 1.156 kB / 0.513 GB, free: 5.383 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.8757, allocations: 0.9688 kB / 0.513 GB, free: 5.383 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000661/0.8764, allocations: 415.7 kB / 0.5134 GB, free: 5.238 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008622/0.8772, allocations: 0.8955 MB / 0.5143 GB, free: 4.719 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.13e-05/0.8773, allocations: 107 kB / 0.5144 GB, free: 4.605 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.04e-05/0.8774, allocations: 4.312 kB / 0.5144 GB, free: 4.605 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002574/0.8776, allocations: 38.97 kB / 0.5144 GB, free: 4.594 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.156e-05/0.8777, allocations: 24.52 kB / 0.5145 GB, free: 4.582 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-05/0.8778, allocations: 19.33 kB / 0.5145 GB, free: 4.574 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001802/0.8779, allocations: 174.3 kB / 0.5146 GB, free: 4.484 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001928/0.8799, allocations: 97.94 kB / 0.5147 GB, free: 4.469 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.0002939/0.8802, allocations: 145.4 kB / 0.5149 GB, free: 4.355 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001253/0.8814, allocations: 0.4995 MB / 0.5154 GB, free: 4.223 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.8815, allocations: 5.438 kB / 0.5154 GB, free: 4.219 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002383/0.8817, allocations: 161.1 kB / 0.5155 GB, free: 4.176 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004019/0.8821, allocations: 48.75 kB / 0.5156 GB, free: 4.16 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001112/0.8832, allocations: 360.8 kB / 0.5159 GB, free: 3.98 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003572/0.8836, allocations: 0.7927 MB / 0.5167 GB, free: 3.23 MB / 330.7 MB Notification: Performance of SimCode: time 2.7e-07/0.8836, allocations: 3.938 kB / 0.5167 GB, free: 3.227 MB / 330.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)