Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.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.TestElectrical6,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical6,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6",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.001011/0.001012, allocations: 179.9 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 1.03/1.03, allocations: 205.2 MB / 213.7 MB, free: 13.88 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.0008415/0.0008416, allocations: 95.98 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2882/0.2882, allocations: 48.75 MB / 358.4 MB, free: 53.38 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0958/0.384, allocations: 66.36 MB / 424.8 MB, free: 8.215 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08903/0.4731, allocations: 60.26 MB / 485.1 MB, free: 11.82 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2269/0.7001, allocations: 87.04 MB / 0.5587 GB, free: 13.78 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001913/0.7003, allocations: 71.97 kB / 0.5588 GB, free: 13.71 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0193/0.7196, allocations: 7.196 MB / 0.5658 GB, free: 6.516 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.7197, allocations: 15.98 kB / 0.5658 GB, free: 6.5 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.166e-05/0.7198, allocations: 55.34 kB / 0.5659 GB, free: 6.445 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004649/0.7202, allocations: 344.2 kB / 0.5662 GB, free: 6.07 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.463e-05/0.7202, allocations: 8 kB / 0.5662 GB, free: 6.062 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.335e-05/0.7203, allocations: 23.91 kB / 0.5662 GB, free: 6.039 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003022/0.7206, allocations: 171.3 kB / 0.5664 GB, free: 5.875 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003593/0.721, allocations: 248.7 kB / 0.5666 GB, free: 5.617 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.721, allocations: 0 / 0.5666 GB, free: 5.617 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.151e-05/0.721, allocations: 2.734 kB / 0.5666 GB, free: 5.617 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.7211, allocations: 8 kB / 0.5666 GB, free: 5.609 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001525/0.7226, allocations: 1.06 MB / 0.5677 GB, free: 4.492 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002637/0.7229, allocations: 162.2 kB / 0.5678 GB, free: 4.324 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001672/0.723, allocations: 109.7 kB / 0.5679 GB, free: 4.215 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.799e-05/0.7231, allocations: 0 / 0.5679 GB, free: 4.215 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.48e-05/0.7231, allocations: 38.56 kB / 0.568 GB, free: 4.168 MB / 394.7 MB Notification: Performance of pre-optimization done (n=32): time 1.273e-06/0.7231, allocations: 0 / 0.568 GB, free: 4.168 MB / 394.7 MB Notification: Performance of matching and sorting (n=34): time 0.001319/0.7244, allocations: 0.6709 MB / 0.5686 GB, free: 3.438 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.952e-05/0.7245, allocations: 55.41 kB / 0.5687 GB, free: 3.371 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000287/0.7248, allocations: 290 kB / 0.5689 GB, free: 3.082 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.214e-05/0.7248, allocations: 25.7 kB / 0.569 GB, free: 3.051 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8e-05/0.7249, allocations: 168.3 kB / 0.5691 GB, free: 2.883 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.865e-05/0.725, allocations: 118.2 kB / 0.5692 GB, free: 2.766 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.276e-05/0.725, allocations: 0 / 0.5692 GB, free: 2.766 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.7251, allocations: 347.5 kB / 0.5696 GB, free: 2.418 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000128/0.7253, allocations: 72.75 kB / 0.5696 GB, free: 2.344 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001534/0.7254, allocations: 125.3 kB / 0.5698 GB, free: 2.207 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000175/0.7256, allocations: 87.95 kB / 0.5698 GB, free: 2.121 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.7256, allocations: 0.5469 kB / 0.5698 GB, free: 2.121 MB / 394.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008371/0.7264, allocations: 389 kB / 0.5702 GB, free: 1.73 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.7265, allocations: 4 kB / 0.5702 GB, free: 1.727 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.7265, allocations: 0 / 0.5702 GB, free: 1.727 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006644/0.7272, allocations: 145.6 kB / 0.5704 GB, free: 1.586 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004285/0.7276, allocations: 83.88 kB / 0.5704 GB, free: 1.504 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001463/0.7291, allocations: 1.978 MB / 0.5724 GB, free: 15.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002406/0.7293, allocations: 4 kB / 0.5724 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.501e-05/0.7294, allocations: 16 kB / 0.5724 GB, free: 15.37 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 (34): * Single equations (assignments): 32 * 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 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001092/0.7295, allocations: 117.2 kB / 0.5725 GB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.817e-05/0.7296, allocations: 43.44 kB / 0.5725 GB, free: 15.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004235/0.73, allocations: 268.2 kB / 0.5728 GB, free: 14.94 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.73, allocations: 4 kB / 0.5728 GB, free: 14.94 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-06/0.73, allocations: 0 / 0.5728 GB, free: 14.94 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.73, allocations: 7.984 kB / 0.5728 GB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000885/0.7309, allocations: 0.6747 MB / 0.5735 GB, free: 14.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.7309, allocations: 2.062 kB / 0.5735 GB, free: 14.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004489/0.7314, allocations: 87.45 kB / 0.5736 GB, free: 14.13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.7314, allocations: 4 kB / 0.5736 GB, free: 14.12 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.453e-05/0.7314, allocations: 3.984 kB / 0.5736 GB, free: 14.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.7314, allocations: 7.938 kB / 0.5736 GB, free: 14.11 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.7314, allocations: 0 / 0.5736 GB, free: 14.11 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005621/0.732, allocations: 475.4 kB / 0.574 GB, free: 13.63 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008862/0.7329, allocations: 0.946 MB / 0.5749 GB, free: 12.67 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001523/0.7331, allocations: 128.6 kB / 0.5751 GB, free: 12.52 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.524e-05/0.7331, allocations: 0 / 0.5751 GB, free: 12.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002298/0.7334, allocations: 4 kB / 0.5751 GB, free: 12.52 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.349e-05/0.7334, allocations: 31.8 kB / 0.5751 GB, free: 12.49 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.102e-05/0.7335, allocations: 12 kB / 0.5751 GB, free: 12.48 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0002015/0.7337, allocations: 224.5 kB / 0.5753 GB, free: 12.26 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000903/0.7346, allocations: 76 kB / 0.5754 GB, free: 12.18 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (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) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 36 * 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.000168/0.7348, allocations: 112.4 kB / 0.5755 GB, free: 12.07 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006493/0.7354, allocations: 260.9 kB / 0.5758 GB, free: 11.82 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.7354, allocations: 0 / 0.5758 GB, free: 11.82 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001635/0.7356, allocations: 119.7 kB / 0.5759 GB, free: 11.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004178/0.736, allocations: 59.77 kB / 0.5759 GB, free: 11.64 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001574/0.7376, allocations: 0.8713 MB / 0.5768 GB, free: 10.76 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004331/0.7381, allocations: 0.8827 MB / 0.5776 GB, free: 9.848 MB / 410.7 MB Notification: Performance of SimCode: time 2.5e-07/0.7381, allocations: 0 / 0.5776 GB, free: 9.848 MB / 410.7 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6_fmu --startTime=0 --stopTime=40 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe 2>&1)