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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/PowerGrids 1.0.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008808/0.0008808, allocations: 97.64 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005331/0.005332, allocations: 172.1 kB / 16.27 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.296/1.296, allocations: 205.4 MB / 222.5 MB, free: 5.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05578/0.05578, allocations: 14.17 MB / 284.9 MB, free: 7.027 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004675/0.0004676, allocations: 12 kB / 348.9 MB, free: 17.38 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07612/0.0766, allocations: 51.11 MB / 400 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter): time 0.001895/0.07853, allocations: 1.738 MB / 401.8 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001206/0.07975, allocations: 0.866 MB / 402.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.548e-05/0.07986, allocations: 7.938 kB / 402.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001531/0.08002, allocations: 47.75 kB / 402.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001647/0.08019, allocations: 63.72 kB / 402.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004365/0.08064, allocations: 207.7 kB / 403 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002693/0.08091, allocations: 283.2 kB / 403.2 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001406/0.08106, allocations: 64.95 kB / 403.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001054/0.08117, allocations: 103.5 kB / 403.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001534/0.08133, allocations: 123.4 kB / 403.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.768e-05/0.08138, allocations: 12 kB / 403.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001225/0.08151, allocations: 83.92 kB / 403.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.415e-05/0.08158, allocations: 43.78 kB / 403.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001165/0.0817, allocations: 140.9 kB / 403.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002862/0.08199, allocations: 299 kB / 404.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.08201, allocations: 0 / 404.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.08201, allocations: 0 / 404.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.247e-06/0.08202, allocations: 0 / 404.1 MB, free: 10.14 MB / 302.1 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.0007769/0.0828, allocations: 0.5859 MB / 404.7 MB, free: 9.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.303e-05/0.08284, allocations: 8.031 kB / 404.7 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.056e-05/0.0829, allocations: 58.72 kB / 404.7 MB, free: 9.426 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.336e-05/0.08296, allocations: 32.56 kB / 404.8 MB, free: 9.395 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003272/0.08329, allocations: 299.5 kB / 405.1 MB, free: 9.062 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.966e-05/0.08332, allocations: 16.38 kB / 405.1 MB, free: 9.047 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.331e-05/0.08337, allocations: 16.38 kB / 405.1 MB, free: 9.031 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006296/0.084, allocations: 321.4 kB / 405.4 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.08402, allocations: 0 / 405.4 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.417e-05/0.08406, allocations: 8 kB / 405.4 MB, free: 8.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.08407, allocations: 11.94 kB / 405.4 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006822/0.08476, allocations: 268.2 kB / 405.7 MB, free: 8.406 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001097/0.08586, allocations: 0.9905 MB / 406.7 MB, free: 7.348 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008733/0.08675, allocations: 333 kB / 407 MB, free: 7.004 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003698/0.08713, allocations: 169.6 kB / 407.2 MB, free: 6.832 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.466e-05/0.08716, allocations: 4 kB / 407.2 MB, free: 6.828 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00051/0.08768, allocations: 254.6 kB / 407.4 MB, free: 6.555 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.393e-06/0.08769, allocations: 0 / 407.4 MB, free: 6.555 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001234/0.08893, allocations: 0.5223 MB / 407.9 MB, free: 6.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.823e-05/0.08902, allocations: 166.2 kB / 408.1 MB, free: 5.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002239/0.08925, allocations: 254.6 kB / 408.4 MB, free: 5.559 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.854e-05/0.08929, allocations: 33.7 kB / 408.4 MB, free: 5.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.0894, allocations: 164.4 kB / 408.5 MB, free: 5.355 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.611e-05/0.08947, allocations: 74.98 kB / 408.6 MB, free: 5.281 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.35e-05/0.08951, allocations: 29.7 kB / 408.6 MB, free: 5.246 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.08963, allocations: 334.8 kB / 409 MB, free: 4.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003442/0.08998, allocations: 139.9 kB / 409.1 MB, free: 4.773 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003906/0.09038, allocations: 212.4 kB / 409.3 MB, free: 4.535 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007204/0.09111, allocations: 380.4 kB / 409.7 MB, free: 4.133 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.09113, allocations: 0 / 409.7 MB, free: 4.133 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.002003/0.09313, allocations: 0.789 MB / 410.5 MB, free: 3.324 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001003/0.09325, allocations: 163.1 kB / 410.6 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.09326, allocations: 0 / 410.6 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004906/0.09375, allocations: 145.6 kB / 410.8 MB, free: 2.988 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002053/0.09397, allocations: 47.89 kB / 410.8 MB, free: 2.941 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004986/0.09896, allocations: 3.823 MB / 414.7 MB, free: 14.85 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002521/0.09923, allocations: 59.81 kB / 414.7 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.247e-05/0.09927, allocations: 15.92 kB / 414.7 MB, free: 14.78 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.733e-06/0.09928, allocations: 7.938 kB / 414.7 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005222/0.09981, allocations: 305.6 kB / 415 MB, free: 14.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.545e-06/0.09982, allocations: 0 / 415 MB, free: 14.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.379e-06/0.09983, allocations: 4 kB / 415 MB, free: 14.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002531/0.1001, allocations: 59.89 kB / 415.1 MB, free: 14.4 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.1001, allocations: 4 kB / 415.1 MB, free: 14.4 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001529/0.1003, allocations: 27.83 kB / 415.1 MB, free: 14.37 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.617e-05/0.1003, allocations: 8 kB / 415.1 MB, free: 14.36 MB / 318.1 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 (inputSignal.nextEventScaled,inputSignal.nextEvent,$PRE.inputSignal.nextEvent,inputSignal.last,inputSignal.b,inputSignal.a,$whenCondition1,firstOrderNegativeGain.I.local_reset,firstOrderPositiveGain.I.local_reset) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.000206/0.1005, allocations: 272 kB / 415.4 MB, free: 14.08 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.472e-05/0.1005, allocations: 35.64 kB / 415.4 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.874e-05/0.1006, allocations: 30.17 kB / 415.5 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1006, allocations: 0 / 415.5 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.405e-06/0.1006, allocations: 0 / 415.5 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.1006, allocations: 7.984 kB / 415.5 MB, free: 14.01 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002941/0.1009, allocations: 329.2 kB / 415.8 MB, free: 13.64 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1009, allocations: 0 / 415.8 MB, free: 13.64 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003139/0.1013, allocations: 67.94 kB / 415.9 MB, free: 13.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.1013, allocations: 0 / 415.9 MB, free: 13.57 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.467e-05/0.1013, allocations: 11.98 kB / 415.9 MB, free: 13.56 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.1013, allocations: 3.938 kB / 415.9 MB, free: 13.56 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1013, allocations: 0 / 415.9 MB, free: 13.56 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001247/0.1026, allocations: 0.6204 MB / 416.5 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.455e-05/0.1026, allocations: 104.8 kB / 416.6 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.562e-05/0.1027, allocations: 8 kB / 416.6 MB, free: 12.78 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002148/0.1029, allocations: 47.95 kB / 416.7 MB, free: 12.73 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.646e-05/0.103, allocations: 27.95 kB / 416.7 MB, free: 12.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-05/0.103, allocations: 8 kB / 416.7 MB, free: 12.7 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001598/0.1032, allocations: 186 kB / 416.9 MB, free: 12.52 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1032, allocations: 4 kB / 416.9 MB, free: 12.52 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004845/0.1037, allocations: 107.8 kB / 417 MB, free: 12.41 MB / 318.1 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001593/0.1053, allocations: 1.196 MB / 418.2 MB, free: 11.18 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001732/0.107, allocations: 0.9433 MB / 419.1 MB, free: 10.18 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.1071, allocations: 0 / 419.1 MB, free: 10.18 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004394/0.1075, allocations: 251.5 kB / 419.4 MB, free: 9.926 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003812/0.1079, allocations: 56.45 kB / 419.4 MB, free: 9.871 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006432/0.1143, allocations: 3.884 MB / 423.3 MB, free: 5.844 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003067/0.1147, allocations: 0.7635 MB / 424.1 MB, free: 5.055 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001472/0.1148, allocations: 33.94 kB / 424.1 MB, free: 5.023 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001148/0.1149, allocations: 79.41 kB / 424.2 MB, free: 4.945 MB / 318.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1149, allocations: 0 / 424.2 MB, free: 4.945 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1561/0.271, allocations: 7.336 MB / 431.5 MB, free: 36.52 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001515/0.2712, allocations: 234.2 kB / 431.7 MB, free: 36.27 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.733/2.004, allocations: 1.188 kB / 431.7 MB, free: 36.27 MB / 318.1 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/bin/OMSimulator -r=PowerGrids_PowerGrids.Controls.Test.TestFirstOrderWithNonWindupLimiter_res.mat --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)