Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.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.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",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: 184 kB / 8.134 MB, free: 2.199 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.041/1.041, allocations: 205.2 MB / 213.7 MB, free: 13.93 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.0008721/0.0008724, allocations: 87.58 kB / 261.7 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.2939/0.2939, allocations: 48.76 MB / 358.4 MB, free: 53.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09368/0.3876, allocations: 66.36 MB / 424.8 MB, free: 8.121 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09122/0.4788, allocations: 60.26 MB / 485.1 MB, free: 11.72 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2266/0.7055, allocations: 85.98 MB / 0.5577 GB, free: 14.75 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002018/0.7057, allocations: 68.53 kB / 0.5577 GB, free: 14.69 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.01542/0.7212, allocations: 5.725 MB / 0.5633 GB, free: 8.961 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.257e-05/0.7212, allocations: 11.72 kB / 0.5633 GB, free: 8.953 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.102e-05/0.7213, allocations: 39.53 kB / 0.5634 GB, free: 8.914 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004492/0.7217, allocations: 319.3 kB / 0.5637 GB, free: 8.566 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.7218, allocations: 8 kB / 0.5637 GB, free: 8.559 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.289e-05/0.7218, allocations: 18.06 kB / 0.5637 GB, free: 8.543 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002439/0.7221, allocations: 128.8 kB / 0.5638 GB, free: 8.418 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002897/0.7224, allocations: 201.8 kB / 0.564 GB, free: 8.207 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.7224, allocations: 0 / 0.564 GB, free: 8.207 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.708e-05/0.7224, allocations: 0 / 0.564 GB, free: 8.207 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.7224, allocations: 8 kB / 0.564 GB, free: 8.199 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001043/0.7235, allocations: 0.7924 MB / 0.5648 GB, free: 7.359 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001842/0.7237, allocations: 117.7 kB / 0.5649 GB, free: 7.238 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001381/0.7238, allocations: 92.22 kB / 0.565 GB, free: 7.148 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.179e-05/0.7238, allocations: 4 kB / 0.565 GB, free: 7.145 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.349e-05/0.7239, allocations: 32.31 kB / 0.565 GB, free: 7.105 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 1.673e-06/0.7239, allocations: 0 / 0.565 GB, free: 7.105 MB / 394.7 MB Notification: Performance of matching and sorting (n=28): time 0.00101/0.7249, allocations: 0.5768 MB / 0.5656 GB, free: 6.473 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.595e-05/0.7249, allocations: 55.64 kB / 0.5656 GB, free: 6.406 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002464/0.7252, allocations: 251.5 kB / 0.5659 GB, free: 6.156 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.938e-05/0.7252, allocations: 25.7 kB / 0.5659 GB, free: 6.125 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.234e-05/0.7253, allocations: 140.4 kB / 0.566 GB, free: 5.984 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.042e-05/0.7254, allocations: 105.2 kB / 0.5661 GB, free: 5.883 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.307e-06/0.7254, allocations: 0 / 0.5661 GB, free: 5.883 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.7255, allocations: 346.8 kB / 0.5665 GB, free: 5.535 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.726e-05/0.7256, allocations: 52 kB / 0.5665 GB, free: 5.484 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001161/0.7257, allocations: 90.7 kB / 0.5666 GB, free: 5.383 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001349/0.7259, allocations: 69.31 kB / 0.5667 GB, free: 5.316 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.7259, allocations: 2.812 kB / 0.5667 GB, free: 5.316 MB / 394.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004467/0.7263, allocations: 268.2 kB / 0.5669 GB, free: 5.047 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/0.7263, allocations: 4 kB / 0.5669 GB, free: 5.043 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.7264, allocations: 0 / 0.5669 GB, free: 5.043 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003028/0.7267, allocations: 76.73 kB / 0.567 GB, free: 4.965 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003562/0.727, allocations: 75.98 kB / 0.5671 GB, free: 4.891 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001353/0.7284, allocations: 1.909 MB / 0.5689 GB, free: 2.836 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002001/0.7286, allocations: 20.08 kB / 0.569 GB, free: 2.816 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.7286, allocations: 12 kB / 0.569 GB, free: 2.805 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 (28): * Single equations (assignments): 26 * 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: 1 * 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: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of prepare postOptimizeDAE: time 7.845e-05/0.7287, allocations: 105 kB / 0.5691 GB, free: 2.695 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.674e-05/0.7288, allocations: 31.62 kB / 0.5691 GB, free: 2.664 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003315/0.7291, allocations: 212.7 kB / 0.5693 GB, free: 2.457 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.766e-06/0.7291, allocations: 4 kB / 0.5693 GB, free: 2.453 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.257e-06/0.7291, allocations: 3.906 kB / 0.5693 GB, free: 2.449 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.7291, allocations: 11.98 kB / 0.5693 GB, free: 2.438 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000705/0.7299, allocations: 0.5907 MB / 0.5699 GB, free: 1.805 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.7299, allocations: 0 / 0.5699 GB, free: 1.805 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003671/0.7302, allocations: 79.61 kB / 0.57 GB, free: 1.73 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.7303, allocations: 0 / 0.57 GB, free: 1.73 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.111e-05/0.7303, allocations: 7.984 kB / 0.57 GB, free: 1.723 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.7303, allocations: 5.562 kB / 0.57 GB, free: 1.719 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.7303, allocations: 0 / 0.57 GB, free: 1.719 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004445/0.7307, allocations: 395 kB / 0.5704 GB, free: 1.316 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006739/0.7314, allocations: 0.8447 MB / 0.5712 GB, free: 464 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001193/0.7316, allocations: 128.6 kB / 0.5713 GB, free: 316 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.258e-05/0.7316, allocations: 4.75 kB / 0.5713 GB, free: 312 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002141/0.7318, allocations: 15.92 kB / 0.5713 GB, free: 296 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.36e-05/0.7319, allocations: 15.97 kB / 0.5714 GB, free: 280 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.476e-05/0.7319, allocations: 8 kB / 0.5714 GB, free: 272 kB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001863/0.7321, allocations: 199.1 kB / 0.5716 GB, free: 72 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008453/0.733, allocations: 64 kB / 0.5716 GB, free: 8 kB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.omega_e_filt) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 30 * 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.0001473/0.7331, allocations: 107.2 kB / 0.5717 GB, free: 15.89 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005055/0.7336, allocations: 201.8 kB / 0.5719 GB, free: 15.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.7336, allocations: 2.438 kB / 0.5719 GB, free: 15.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001291/0.7338, allocations: 96 kB / 0.572 GB, free: 15.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003293/0.7341, allocations: 57.27 kB / 0.5721 GB, free: 15.55 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001306/0.7354, allocations: 0.7321 MB / 0.5728 GB, free: 14.81 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003927/0.7358, allocations: 0.8404 MB / 0.5736 GB, free: 13.94 MB / 410.7 MB Notification: Performance of SimCode: time 9.62e-07/0.7358, allocations: 0 / 0.5736 GB, free: 13.94 MB / 410.7 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-07 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe 2>&1)