Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.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.TestDerivativeLag,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestDerivativeLag",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Controls.Test.TestDerivativeLag,fileNamePrefix="PowerGrids_PowerGrids_Controls_Test_TestDerivativeLag",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.007449/0.00745, allocations: 183.2 kB / 7.461 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.648/1.648, 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.0009489/0.0009488, allocations: 101 kB / 261.1 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2-master/package.mo): time 0.05777/0.05777, allocations: 14.03 MB / 323 MB, free: 15.5 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2968/0.3547, allocations: 58.35 MB / 381.4 MB, free: 73.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.466, allocations: 51.11 MB / 432.5 MB, free: 21.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.346/0.8121, allocations: 77.14 MB / 0.4977 GB, free: 11.93 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002236/0.8124, allocations: 62.38 kB / 0.4978 GB, free: 11.93 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.006289/0.8187, allocations: 2.269 MB / 0.5 GB, free: 11.43 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.8187, allocations: 11.53 kB / 0.5 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.949e-05/0.8188, allocations: 17.08 kB / 0.5 GB, free: 11.42 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003504/0.8191, allocations: 234.5 kB / 0.5002 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.484e-05/0.8192, allocations: 3.531 kB / 0.5002 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.089e-05/0.8192, allocations: 11.89 kB / 0.5002 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001034/0.8193, allocations: 35.41 kB / 0.5003 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001594/0.8195, allocations: 116.2 kB / 0.5004 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/0.8195, allocations: 1.312 kB / 0.5004 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.8195, allocations: 1.688 kB / 0.5004 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.8195, allocations: 2.656 kB / 0.5004 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006518/0.8202, allocations: 0.7283 MB / 0.5011 GB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.826e-05/0.8203, allocations: 73.16 kB / 0.5012 GB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.515e-05/0.8203, allocations: 33.7 kB / 0.5012 GB, free: 10.4 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.991e-05/0.8204, allocations: 5.109 kB / 0.5012 GB, free: 10.4 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.621e-05/0.8204, allocations: 34.56 kB / 0.5012 GB, free: 10.36 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.383e-06/0.8204, allocations: 0 / 0.5012 GB, free: 10.36 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002215/0.8206, allocations: 68.86 kB / 0.5013 GB, free: 10.32 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.64e-05/0.8207, allocations: 104 kB / 0.5014 GB, free: 10.19 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001038/0.8208, allocations: 137.6 kB / 0.5015 GB, free: 10.09 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.277e-05/0.8208, allocations: 27.39 kB / 0.5016 GB, free: 10.06 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.723e-05/0.8209, allocations: 108.7 kB / 0.5017 GB, free: 9.965 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.843e-05/0.8209, allocations: 20.48 kB / 0.5017 GB, free: 9.953 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.9e-06/0.8209, allocations: 4.062 kB / 0.5017 GB, free: 9.949 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.75e-05/0.821, allocations: 323.4 kB / 0.502 GB, free: 9.637 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.743e-05/0.821, allocations: 11.72 kB / 0.502 GB, free: 9.637 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.321e-05/0.8211, allocations: 60.64 kB / 0.5021 GB, free: 9.57 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.01e-05/0.8211, allocations: 28.06 kB / 0.5021 GB, free: 9.562 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.8211, allocations: 0 / 0.5021 GB, free: 9.562 MB / 330.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000121/0.8212, allocations: 97.22 kB / 0.5022 GB, free: 9.512 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.8213, allocations: 3.906 kB / 0.5022 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.8213, allocations: 3.844 kB / 0.5022 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.8213, allocations: 160 / 0.5022 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001345/0.8214, allocations: 28.56 kB / 0.5022 GB, free: 9.508 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.8215, allocations: 3.844 kB / 0.5022 GB, free: 9.508 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.143e-05/0.8215, allocations: 13.09 kB / 0.5022 GB, free: 9.5 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.09e-05/0.8216, allocations: 5.391 kB / 0.5022 GB, free: 9.5 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: 1 (derivativeLag.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 prepare postOptimizeDAE: time 5.339e-05/0.8216, allocations: 108.8 kB / 0.5024 GB, free: 9.391 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.687e-05/0.8217, allocations: 7.75 kB / 0.5024 GB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.499e-05/0.8217, allocations: 21.17 kB / 0.5024 GB, free: 9.371 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.8217, allocations: 0 / 0.5024 GB, free: 9.371 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.8217, allocations: 0 / 0.5024 GB, free: 9.371 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.8218, allocations: 9.297 kB / 0.5024 GB, free: 9.367 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002182/0.822, allocations: 167.9 kB / 0.5025 GB, free: 9.211 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.822, allocations: 3.844 kB / 0.5026 GB, free: 9.211 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.833e-05/0.8221, allocations: 14.36 kB / 0.5026 GB, free: 9.211 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.8221, allocations: 0 / 0.5026 GB, free: 9.211 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.8221, allocations: 2.156 kB / 0.5026 GB, free: 9.211 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.8221, allocations: 7.875 kB / 0.5026 GB, free: 9.207 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.8221, allocations: 0 / 0.5026 GB, free: 9.207 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001835/0.8223, allocations: 353 kB / 0.5029 GB, free: 8.887 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002091/0.8225, allocations: 0.739 MB / 0.5036 GB, free: 8.188 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.837e-05/0.8226, allocations: 86.33 kB / 0.5037 GB, free: 8.09 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.222e-05/0.8226, allocations: 4 kB / 0.5037 GB, free: 8.086 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001621/0.8228, allocations: 9.156 kB / 0.5037 GB, free: 8.082 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.698e-05/0.8228, allocations: 10.33 kB / 0.5037 GB, free: 8.082 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.601e-06/0.8228, allocations: 4.734 kB / 0.5037 GB, free: 8.082 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.363e-05/0.8229, allocations: 109.4 kB / 0.5038 GB, free: 8.004 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009425/0.8238, allocations: 27.16 kB / 0.5039 GB, free: 7.992 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (derivativeLag.integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001238/0.824, allocations: 100 kB / 0.504 GB, free: 7.902 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001233/0.8241, allocations: 40.23 kB / 0.504 GB, free: 7.898 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.8241, allocations: 4.062 kB / 0.504 GB, free: 7.895 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.394e-05/0.8242, allocations: 20.16 kB / 0.504 GB, free: 7.895 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003503/0.8245, allocations: 18.25 kB / 0.504 GB, free: 7.895 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004823/0.825, allocations: 161.5 kB / 0.5042 GB, free: 7.781 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000288/0.8253, allocations: 0.7267 MB / 0.5049 GB, free: 7.074 MB / 330.7 MB Notification: Performance of SimCode: time 2.71e-07/0.8253, allocations: 0 / 0.5049 GB, free: 7.074 MB / 330.7 MB (rm -f PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_PowerGrids_Controls_Test_TestDerivativeLag_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Controls_Test_TestDerivativeLag.fmu > PowerGrids_PowerGrids.Controls.Test.TestDerivativeLag.pipe 2>&1)