Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.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.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",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.0009062/0.0009062, allocations: 182.3 kB / 8.131 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.996/0.996, allocations: 205.2 MB / 213.7 MB, free: 13.87 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.0008477/0.0008477, allocations: 99.3 kB / 261.7 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2766/0.2766, allocations: 48.76 MB / 358.5 MB, free: 53.07 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08974/0.3664, allocations: 66.37 MB / 424.8 MB, free: 8.125 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08822/0.4547, allocations: 60.24 MB / 485.1 MB, free: 11.74 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2162/0.6709, allocations: 87.74 MB / 0.5594 GB, free: 13 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001877/0.6711, allocations: 67.97 kB / 0.5594 GB, free: 12.93 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.02115/0.6923, allocations: 7.786 MB / 0.567 GB, free: 5.152 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/0.6923, allocations: 12 kB / 0.5671 GB, free: 5.141 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.876e-05/0.6924, allocations: 51.34 kB / 0.5671 GB, free: 5.09 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005337/0.693, allocations: 368.1 kB / 0.5675 GB, free: 4.691 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/0.693, allocations: 12 kB / 0.5675 GB, free: 4.68 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.573e-05/0.6931, allocations: 20 kB / 0.5675 GB, free: 4.66 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003244/0.6934, allocations: 185.3 kB / 0.5677 GB, free: 4.48 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004022/0.6938, allocations: 260.5 kB / 0.5679 GB, free: 4.211 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.6938, allocations: 0 / 0.5679 GB, free: 4.211 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.208e-05/0.6939, allocations: 0 / 0.5679 GB, free: 4.211 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.288e-06/0.6939, allocations: 8 kB / 0.5679 GB, free: 4.203 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001573/0.6954, allocations: 1.105 MB / 0.569 GB, free: 3.031 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002494/0.6957, allocations: 170.9 kB / 0.5692 GB, free: 2.855 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001661/0.6959, allocations: 113 kB / 0.5693 GB, free: 2.746 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.816e-05/0.6959, allocations: 4.281 kB / 0.5693 GB, free: 2.742 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.134e-05/0.6959, allocations: 38.83 kB / 0.5693 GB, free: 2.695 MB / 394.7 MB Notification: Performance of pre-optimization done (n=34): time 2.474e-06/0.696, allocations: 4 kB / 0.5693 GB, free: 2.691 MB / 394.7 MB Notification: Performance of matching and sorting (n=36): time 0.001166/0.6971, allocations: 0.7089 MB / 0.57 GB, free: 1.934 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.663e-05/0.6972, allocations: 55.41 kB / 0.5701 GB, free: 1.867 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002946/0.6975, allocations: 300.9 kB / 0.5703 GB, free: 1.57 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.071e-05/0.6975, allocations: 25.7 kB / 0.5704 GB, free: 1.539 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.028e-05/0.6976, allocations: 176.5 kB / 0.5705 GB, free: 1.363 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.992e-05/0.6977, allocations: 126.1 kB / 0.5707 GB, free: 1.238 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.266e-05/0.6977, allocations: 4 kB / 0.5707 GB, free: 1.234 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.6978, allocations: 350.8 kB / 0.571 GB, free: 0.8828 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001365/0.6979, allocations: 80.88 kB / 0.5711 GB, free: 0.8047 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001563/0.6981, allocations: 124.1 kB / 0.5712 GB, free: 0.668 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001818/0.6983, allocations: 105.8 kB / 0.5713 GB, free: 0.5664 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.6983, allocations: 0 / 0.5713 GB, free: 0.5664 MB / 394.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004736/0.6988, allocations: 305.8 kB / 0.5716 GB, free: 268 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.19e-05/0.6988, allocations: 4.75 kB / 0.5716 GB, free: 264 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.6988, allocations: 0 / 0.5716 GB, free: 264 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.6988, allocations: 4 kB / 0.5716 GB, free: 260 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007731/0.6996, allocations: 152 kB / 0.5717 GB, free: 108 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008781/0.7005, allocations: 1.291 MB / 0.573 GB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000252/0.7008, allocations: 7.984 kB / 0.573 GB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.013e-05/0.7008, allocations: 19.91 kB / 0.573 GB, free: 14.68 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 48 * 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 8.426e-05/0.7009, allocations: 111.7 kB / 0.5731 GB, free: 14.56 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.762e-05/0.701, allocations: 41.59 kB / 0.5732 GB, free: 14.52 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004439/0.7014, allocations: 294.7 kB / 0.5735 GB, free: 14.24 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.7014, allocations: 4 kB / 0.5735 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.7014, allocations: 0 / 0.5735 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.7014, allocations: 0 / 0.5735 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009479/0.7024, allocations: 0.7139 MB / 0.5742 GB, free: 13.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.7024, allocations: 0 / 0.5742 GB, free: 13.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004695/0.7029, allocations: 87.89 kB / 0.5742 GB, free: 13.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.7029, allocations: 4 kB / 0.5742 GB, free: 13.39 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.623e-05/0.7029, allocations: 7.984 kB / 0.5742 GB, free: 13.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.7029, allocations: 4 kB / 0.5743 GB, free: 13.38 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.703, allocations: 0 / 0.5743 GB, free: 13.38 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005988/0.7036, allocations: 496.2 kB / 0.5747 GB, free: 12.88 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008311/0.7044, allocations: 0.9785 MB / 0.5757 GB, free: 11.88 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001453/0.7046, allocations: 140.6 kB / 0.5758 GB, free: 11.72 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.569e-05/0.7046, allocations: 0 / 0.5758 GB, free: 11.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002536/0.7049, allocations: 7.984 kB / 0.5758 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.55e-05/0.7049, allocations: 20.19 kB / 0.5758 GB, free: 11.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-05/0.705, allocations: 18.42 kB / 0.5759 GB, free: 11.68 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0002205/0.7052, allocations: 235.2 kB / 0.5761 GB, free: 11.45 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008817/0.7061, allocations: 80 kB / 0.5762 GB, free: 11.38 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.omega_e_filt,torqueGen_a.y,torqueGen_b.y,secondaryController.powerOffset) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * 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.0001433/0.7062, allocations: 108.5 kB / 0.5763 GB, free: 11.26 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004867/0.7067, allocations: 255.1 kB / 0.5765 GB, free: 11.02 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.7067, allocations: 0.5469 kB / 0.5765 GB, free: 11.02 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001719/0.7069, allocations: 131.4 kB / 0.5766 GB, free: 10.89 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004042/0.7073, allocations: 71.44 kB / 0.5767 GB, free: 10.82 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001684/0.709, allocations: 0.9148 MB / 0.5776 GB, free: 9.879 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005278/0.7096, allocations: 0.9083 MB / 0.5785 GB, free: 8.945 MB / 410.7 MB Notification: Performance of SimCode: time 2.71e-07/0.7096, allocations: 0 / 0.5785 GB, free: 8.945 MB / 410.7 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1)