Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestLeadLag.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.TestLeadLag,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestLeadLag",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestLeadLag,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestLeadLag",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.002952/0.002952, allocations: 187 kB / 7.46 MB, free: 2.516 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.545/1.545, allocations: 205.2 MB / 213.1 MB, free: 13.85 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.0009888/0.000989, allocations: 90.16 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.05673/0.05673, allocations: 14.03 MB / 323 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2864/0.3432, allocations: 58.36 MB / 381.4 MB, free: 73.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.4728, allocations: 51.1 MB / 432.5 MB, free: 21.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4204/0.8932, allocations: 76.95 MB / 0.4975 GB, free: 11.95 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002296/0.8935, allocations: 66.78 kB / 0.4976 GB, free: 11.95 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.007111/0.9007, allocations: 2.324 MB / 0.4998 GB, free: 11.44 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.076e-05/0.9007, allocations: 11.72 kB / 0.4999 GB, free: 11.44 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.859e-05/0.9008, allocations: 13.23 kB / 0.4999 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000402/0.9012, allocations: 233.7 kB / 0.5001 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.203e-05/0.9012, allocations: 3.875 kB / 0.5001 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.602e-05/0.9013, allocations: 7.688 kB / 0.5001 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001069/0.9014, allocations: 38.91 kB / 0.5001 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001475/0.9015, allocations: 103.6 kB / 0.5002 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.9016, allocations: 0 / 0.5002 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.702e-05/0.9016, allocations: 0 / 0.5002 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.9016, allocations: 5.719 kB / 0.5002 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007671/0.9024, allocations: 0.5709 MB / 0.5008 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003454/0.9027, allocations: 106.4 kB / 0.5009 GB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.949e-05/0.9028, allocations: 35.19 kB / 0.5009 GB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.166e-05/0.9028, allocations: 7.25 kB / 0.5009 GB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.106e-05/0.9029, allocations: 30.56 kB / 0.501 GB, free: 10.56 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/0.9029, allocations: 4 kB / 0.501 GB, free: 10.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002721/0.9032, allocations: 76.2 kB / 0.501 GB, free: 10.52 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.038e-05/0.9032, allocations: 106.1 kB / 0.5011 GB, free: 10.39 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/0.9033, allocations: 135.4 kB / 0.5013 GB, free: 10.29 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.574e-05/0.9034, allocations: 25.7 kB / 0.5013 GB, free: 10.26 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.787e-05/0.9034, allocations: 103.3 kB / 0.5014 GB, free: 10.17 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.379e-05/0.9035, allocations: 24.23 kB / 0.5014 GB, free: 10.15 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.121e-06/0.9035, allocations: 0 / 0.5014 GB, free: 10.15 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.879e-05/0.9036, allocations: 326 kB / 0.5017 GB, free: 9.836 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.35e-05/0.9036, allocations: 13.88 kB / 0.5017 GB, free: 9.836 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.544e-05/0.9037, allocations: 53.27 kB / 0.5018 GB, free: 9.785 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.551e-05/0.9037, allocations: 21.06 kB / 0.5018 GB, free: 9.785 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.9037, allocations: 4.031 kB / 0.5018 GB, free: 9.781 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002659/0.904, allocations: 111.1 kB / 0.5019 GB, free: 9.73 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.904, allocations: 3.844 kB / 0.5019 GB, free: 9.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.904, allocations: 3.781 kB / 0.5019 GB, free: 9.73 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002157/0.9042, allocations: 34.39 kB / 0.502 GB, free: 9.723 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.939e-05/0.9043, allocations: 22.23 kB / 0.502 GB, free: 9.715 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009659/0.9053, allocations: 1.3 MB / 0.5033 GB, free: 8.504 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.893e-05/0.9054, allocations: 13.52 kB / 0.5033 GB, free: 8.5 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.426e-05/0.9055, allocations: 9.141 kB / 0.5033 GB, free: 8.496 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.168e-05/0.9055, allocations: 101 kB / 0.5034 GB, free: 8.391 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.135e-05/0.9056, allocations: 7.719 kB / 0.5034 GB, free: 8.387 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.759e-05/0.9057, allocations: 30.5 kB / 0.5034 GB, free: 8.371 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.9057, allocations: 3.812 kB / 0.5034 GB, free: 8.371 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.933e-06/0.9057, allocations: 0 / 0.5034 GB, free: 8.371 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.9057, allocations: 0 / 0.5034 GB, free: 8.371 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002375/0.9059, allocations: 175.4 kB / 0.5036 GB, free: 8.211 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.9059, allocations: 3.812 kB / 0.5036 GB, free: 8.211 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000109/0.906, allocations: 15.86 kB / 0.5036 GB, free: 8.211 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.12e-06/0.9061, allocations: 3.906 kB / 0.5036 GB, free: 8.207 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.392e-05/0.9061, allocations: 7.438 kB / 0.5036 GB, free: 8.207 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.9061, allocations: 0 / 0.5036 GB, free: 8.207 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.9061, allocations: 4 kB / 0.5036 GB, free: 8.203 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002562/0.9064, allocations: 366.8 kB / 0.504 GB, free: 7.883 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003392/0.9067, allocations: 0.7518 MB / 0.5047 GB, free: 7.191 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.233e-05/0.9068, allocations: 92.47 kB / 0.5048 GB, free: 7.09 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.938e-05/0.9068, allocations: 3.781 kB / 0.5048 GB, free: 7.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001798/0.907, allocations: 10.72 kB / 0.5048 GB, free: 7.086 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.007e-05/0.907, allocations: 5.359 kB / 0.5048 GB, free: 7.082 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.456e-06/0.907, allocations: 5.469 kB / 0.5048 GB, free: 7.082 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.732e-05/0.9071, allocations: 115.1 kB / 0.5049 GB, free: 7.008 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008925/0.908, allocations: 22.59 kB / 0.5049 GB, free: 7.004 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (leadLag.firstOrder.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * 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.0001304/0.9082, allocations: 103.4 kB / 0.505 GB, free: 6.91 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003799/0.9085, allocations: 165.6 kB / 0.5052 GB, free: 6.805 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.9086, allocations: 0 / 0.5052 GB, free: 6.805 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.418e-05/0.9086, allocations: 25.88 kB / 0.5052 GB, free: 6.801 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003304/0.9089, allocations: 21.77 kB / 0.5052 GB, free: 6.797 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004505/0.9094, allocations: 168.8 kB / 0.5054 GB, free: 6.691 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002589/0.9097, allocations: 0.7296 MB / 0.5061 GB, free: 5.984 MB / 330.7 MB Notification: Performance of SimCode: time 2.4e-07/0.9097, allocations: 0 / 0.5061 GB, free: 5.984 MB / 330.7 MB (rm -f PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestLeadLag.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_PowerGrids_Controls_Test_TestLeadLag_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Controls_Test_TestLeadLag.fmu > PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1)