Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.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/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-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(ThermoPower.Test.ElectricalComponents.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",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.001002/0.001002, allocations: 185.7 kB / 8.133 MB, free: 2.07 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.018/1.018, allocations: 205.2 MB / 213.7 MB, free: 13.91 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.0008413/0.0008413, allocations: 86.58 kB / 261.8 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2992/0.2992, allocations: 48.76 MB / 358.4 MB, free: 53.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09791/0.3971, allocations: 66.37 MB / 424.8 MB, free: 8.121 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09662/0.4938, allocations: 60.25 MB / 485.1 MB, free: 11.74 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2384/0.7322, allocations: 85.88 MB / 0.5576 GB, free: 14.87 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002178/0.7324, allocations: 75.2 kB / 0.5576 GB, free: 14.8 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0112/0.7437, allocations: 4.13 MB / 0.5617 GB, free: 10.67 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.268e-05/0.7437, allocations: 8 kB / 0.5617 GB, free: 10.66 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.736e-05/0.7438, allocations: 27.62 kB / 0.5617 GB, free: 10.64 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003623/0.7442, allocations: 264.4 kB / 0.562 GB, free: 10.34 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.205e-05/0.7442, allocations: 4.812 kB / 0.562 GB, free: 10.34 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.385e-05/0.7442, allocations: 12 kB / 0.562 GB, free: 10.33 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00019/0.7444, allocations: 99.91 kB / 0.5621 GB, free: 10.23 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000209/0.7446, allocations: 134.8 kB / 0.5622 GB, free: 10.09 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.7446, allocations: 0 / 0.5622 GB, free: 10.09 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.643e-05/0.7447, allocations: 3.984 kB / 0.5622 GB, free: 10.09 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.7447, allocations: 4 kB / 0.5622 GB, free: 10.08 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007873/0.7455, allocations: 0.6078 MB / 0.5628 GB, free: 9.426 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001283/0.7456, allocations: 81.73 kB / 0.5629 GB, free: 9.34 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.735e-05/0.7457, allocations: 67.48 kB / 0.5629 GB, free: 9.273 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.915e-05/0.7457, allocations: 0 / 0.5629 GB, free: 9.273 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.766e-05/0.7458, allocations: 38.56 kB / 0.563 GB, free: 9.227 MB / 394.7 MB Notification: Performance of pre-optimization done (n=18): time 1.042e-06/0.7458, allocations: 2.719 kB / 0.563 GB, free: 9.227 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.0007642/0.7465, allocations: 457.4 kB / 0.5634 GB, free: 8.727 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.195e-05/0.7466, allocations: 51.41 kB / 0.5635 GB, free: 8.664 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001749/0.7468, allocations: 200.3 kB / 0.5637 GB, free: 8.461 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.7468, allocations: 25.7 kB / 0.5637 GB, free: 8.43 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.739e-05/0.7468, allocations: 124.4 kB / 0.5638 GB, free: 8.305 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.253e-05/0.7469, allocations: 67 kB / 0.5639 GB, free: 8.234 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.554e-06/0.7469, allocations: 4 kB / 0.5639 GB, free: 8.23 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.699e-05/0.747, allocations: 330.8 kB / 0.5642 GB, free: 7.898 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.016e-05/0.7471, allocations: 42.73 kB / 0.5642 GB, free: 7.859 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.798e-05/0.7472, allocations: 53.7 kB / 0.5643 GB, free: 7.801 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.884e-05/0.7473, allocations: 59.91 kB / 0.5643 GB, free: 7.742 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.31e-07/0.7473, allocations: 0 / 0.5643 GB, free: 7.742 MB / 394.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002449/0.7475, allocations: 160.2 kB / 0.5645 GB, free: 7.582 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.7476, allocations: 8 kB / 0.5645 GB, free: 7.574 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.7476, allocations: 0 / 0.5645 GB, free: 7.574 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.7476, allocations: 0 / 0.5645 GB, free: 7.574 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004099/0.748, allocations: 71.92 kB / 0.5646 GB, free: 7.504 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008546/0.7489, allocations: 1.297 MB / 0.5658 GB, free: 6.094 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001432/0.749, allocations: 16.08 kB / 0.5658 GB, free: 6.078 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.3e-05/0.749, allocations: 4 kB / 0.5658 GB, free: 6.074 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 7.121e-05/0.7491, allocations: 104.6 kB / 0.5659 GB, free: 5.969 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.55e-05/0.7492, allocations: 23.72 kB / 0.566 GB, free: 5.945 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002544/0.7494, allocations: 166.5 kB / 0.5661 GB, free: 5.785 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.7494, allocations: 8 kB / 0.5661 GB, free: 5.777 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.432e-06/0.7495, allocations: 0 / 0.5661 GB, free: 5.777 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.7495, allocations: 7.891 kB / 0.5661 GB, free: 5.77 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005447/0.75, allocations: 475.3 kB / 0.5666 GB, free: 5.262 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.75, allocations: 3.938 kB / 0.5666 GB, free: 5.258 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002573/0.7503, allocations: 52.72 kB / 0.5666 GB, free: 5.207 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.7503, allocations: 3.906 kB / 0.5666 GB, free: 5.203 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.7503, allocations: 8 kB / 0.5667 GB, free: 5.195 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.7503, allocations: 0 / 0.5667 GB, free: 5.195 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.7503, allocations: 0.6562 kB / 0.5667 GB, free: 5.195 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003341/0.7507, allocations: 315.3 kB / 0.567 GB, free: 4.875 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005111/0.7512, allocations: 0.74 MB / 0.5677 GB, free: 4.117 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.043e-05/0.7513, allocations: 112.8 kB / 0.5678 GB, free: 3.988 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.22e-05/0.7513, allocations: 0.75 kB / 0.5678 GB, free: 3.988 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001625/0.7515, allocations: 11.98 kB / 0.5678 GB, free: 3.977 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.621e-05/0.7516, allocations: 16.3 kB / 0.5678 GB, free: 3.961 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.207e-05/0.7516, allocations: 4 kB / 0.5678 GB, free: 3.957 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001176/0.7517, allocations: 164.4 kB / 0.568 GB, free: 3.797 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008342/0.7525, allocations: 44 kB / 0.568 GB, free: 3.754 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (generator.phi,generator.omega_m,generator.omega_e_filt,grid.port.theta) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 21 * 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.0001532/0.7527, allocations: 111.7 kB / 0.5681 GB, free: 3.637 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003273/0.753, allocations: 135.7 kB / 0.5683 GB, free: 3.504 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.753, allocations: 0 / 0.5683 GB, free: 3.504 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 9.722e-05/0.7531, allocations: 69.23 kB / 0.5683 GB, free: 3.438 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002712/0.7534, allocations: 31.36 kB / 0.5684 GB, free: 3.41 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009583/0.7544, allocations: 0.5161 MB / 0.5689 GB, free: 2.879 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003513/0.7547, allocations: 0.8045 MB / 0.5696 GB, free: 2.055 MB / 394.7 MB Notification: Performance of SimCode: time 4.21e-07/0.7548, allocations: 0 / 0.5696 GB, free: 2.055 MB / 394.7 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1)