Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.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.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",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.0009391/0.0009391, allocations: 181.2 kB / 8.132 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 1.007/1.007, 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.0008547/0.0008546, allocations: 93.98 kB / 261.7 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2831/0.2831, allocations: 48.74 MB / 358.4 MB, free: 53.06 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0938/0.377, allocations: 66.36 MB / 424.8 MB, free: 8.133 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08844/0.4654, allocations: 60.26 MB / 485.1 MB, free: 11.73 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.219/0.6845, allocations: 85.5 MB / 0.5572 GB, free: 15.25 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001946/0.6847, allocations: 71.97 kB / 0.5573 GB, free: 15.18 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.008725/0.6935, allocations: 3.189 MB / 0.5604 GB, free: 12 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.6935, allocations: 12.19 kB / 0.5604 GB, free: 11.98 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.451e-05/0.6936, allocations: 19.72 kB / 0.5604 GB, free: 11.96 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002988/0.6939, allocations: 247.6 kB / 0.5606 GB, free: 11.68 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/0.6939, allocations: 4 kB / 0.5606 GB, free: 11.68 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.906e-05/0.6939, allocations: 19.73 kB / 0.5607 GB, free: 11.66 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001392/0.6941, allocations: 63.92 kB / 0.5607 GB, free: 11.6 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001576/0.6943, allocations: 106.7 kB / 0.5608 GB, free: 11.48 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.6943, allocations: 7.984 kB / 0.5608 GB, free: 11.48 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.6943, allocations: 0 / 0.5608 GB, free: 11.48 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.6943, allocations: 0 / 0.5608 GB, free: 11.48 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006036/0.6949, allocations: 0.5027 MB / 0.5613 GB, free: 10.93 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001173/0.695, allocations: 71.12 kB / 0.5614 GB, free: 10.85 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.227e-05/0.6951, allocations: 39.27 kB / 0.5614 GB, free: 10.81 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/0.6951, allocations: 4 kB / 0.5614 GB, free: 10.81 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.51e-05/0.6952, allocations: 38.47 kB / 0.5615 GB, free: 10.76 MB / 394.7 MB Notification: Performance of pre-optimization done (n=12): time 1.292e-06/0.6952, allocations: 0 / 0.5615 GB, free: 10.76 MB / 394.7 MB Notification: Performance of matching and sorting (n=13): time 0.000638/0.6958, allocations: 384.5 kB / 0.5618 GB, free: 10.33 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.468e-05/0.6959, allocations: 51.41 kB / 0.5619 GB, free: 10.27 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001509/0.696, allocations: 174 kB / 0.5621 GB, free: 10.09 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.456e-05/0.696, allocations: 25.7 kB / 0.5621 GB, free: 10.06 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.022e-05/0.6961, allocations: 116.2 kB / 0.5622 GB, free: 9.941 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.271e-05/0.6961, allocations: 55.27 kB / 0.5622 GB, free: 9.887 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.731e-06/0.6962, allocations: 0 / 0.5622 GB, free: 9.887 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.464e-05/0.6962, allocations: 330.8 kB / 0.5626 GB, free: 9.555 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.003e-05/0.6963, allocations: 20 kB / 0.5626 GB, free: 9.535 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.762e-05/0.6964, allocations: 46.58 kB / 0.5626 GB, free: 9.48 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.379e-05/0.6964, allocations: 31.98 kB / 0.5627 GB, free: 9.449 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.61e-07/0.6965, allocations: 4.75 kB / 0.5627 GB, free: 9.445 MB / 394.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0001956/0.6967, allocations: 121.4 kB / 0.5628 GB, free: 9.32 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.6967, allocations: 8 kB / 0.5628 GB, free: 9.312 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.6967, allocations: 3.906 kB / 0.5628 GB, free: 9.309 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.929e-06/0.6967, allocations: 0 / 0.5628 GB, free: 9.309 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001872/0.6969, allocations: 43.92 kB / 0.5628 GB, free: 9.266 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.6969, allocations: 0 / 0.5628 GB, free: 9.266 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001107/0.697, allocations: 14.42 kB / 0.5628 GB, free: 9.254 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.168e-05/0.697, allocations: 4.562 kB / 0.5628 GB, free: 9.25 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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.784e-05/0.6971, allocations: 101 kB / 0.5629 GB, free: 9.145 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.422e-05/0.6972, allocations: 19.72 kB / 0.563 GB, free: 9.125 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002181/0.6974, allocations: 129.9 kB / 0.5631 GB, free: 8.992 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.6974, allocations: 5.953 kB / 0.5631 GB, free: 8.988 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.676e-06/0.6974, allocations: 0 / 0.5631 GB, free: 8.988 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.6974, allocations: 2.062 kB / 0.5631 GB, free: 8.988 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004327/0.6978, allocations: 416 kB / 0.5635 GB, free: 8.539 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.6979, allocations: 0 / 0.5635 GB, free: 8.539 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001918/0.6981, allocations: 31.92 kB / 0.5635 GB, free: 8.508 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.6981, allocations: 4 kB / 0.5635 GB, free: 8.504 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.6981, allocations: 0 / 0.5635 GB, free: 8.504 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.6981, allocations: 0 / 0.5635 GB, free: 8.504 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.6981, allocations: 0 / 0.5635 GB, free: 8.504 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002705/0.6984, allocations: 255.5 kB / 0.5638 GB, free: 8.242 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003858/0.6988, allocations: 0.6567 MB / 0.5644 GB, free: 7.566 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.176e-05/0.6989, allocations: 104.9 kB / 0.5645 GB, free: 7.445 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.141e-05/0.6989, allocations: 3.906 kB / 0.5645 GB, free: 7.441 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001336/0.699, allocations: 4 kB / 0.5645 GB, free: 7.438 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.655e-05/0.6991, allocations: 11.98 kB / 0.5645 GB, free: 7.426 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.492e-06/0.6991, allocations: 0 / 0.5645 GB, free: 7.426 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001027/0.6992, allocations: 144.6 kB / 0.5647 GB, free: 7.285 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007933/0.7, allocations: 32 kB / 0.5647 GB, free: 7.254 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (generator.phi,generator.omega_m,generator.omega_e_filt) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * 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.0001155/0.7001, allocations: 99.44 kB / 0.5648 GB, free: 7.148 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001473/0.7003, allocations: 85.8 kB / 0.5649 GB, free: 7.066 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.7003, allocations: 0 / 0.5649 GB, free: 7.066 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 6.089e-05/0.7003, allocations: 43.94 kB / 0.5649 GB, free: 7.023 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002703/0.7006, allocations: 27.83 kB / 0.5649 GB, free: 7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007611/0.7014, allocations: 394.4 kB / 0.5653 GB, free: 6.602 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002897/0.7017, allocations: 0.7655 MB / 0.5661 GB, free: 5.816 MB / 394.7 MB Notification: Performance of SimCode: time 1.302e-06/0.7017, allocations: 4 kB / 0.5661 GB, free: 5.812 MB / 394.7 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe 2>&1)