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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001588/0.001588, allocations: 93.36 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001903/0.001903, allocations: 180.2 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.987/2.987, allocations: 205.4 MB / 223.4 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.5957/0.5957, allocations: 48.77 MB / 320.4 MB, free: 11.32 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0008376/0.0008377, allocations: 12.91 kB / 391.2 MB, free: 50.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1902/0.1911, allocations: 60.27 MB / 451.5 MB, free: 9.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.0051/0.1962, allocations: 2.507 MB / 454 MB, free: 6.969 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002733/0.1991, allocations: 0.8273 MB / 454.8 MB, free: 6.137 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003735/0.1995, allocations: 7.938 kB / 454.8 MB, free: 6.129 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000139/0.1996, allocations: 39.62 kB / 454.9 MB, free: 6.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006982/0.2003, allocations: 167.5 kB / 455 MB, free: 5.926 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003706/0.2007, allocations: 83.83 kB / 455.1 MB, free: 5.844 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007296/0.2015, allocations: 335.7 kB / 455.5 MB, free: 5.516 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000341/0.2018, allocations: 106.1 kB / 455.6 MB, free: 5.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003689/0.2022, allocations: 163.3 kB / 455.7 MB, free: 5.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003642/0.2026, allocations: 179.1 kB / 455.9 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.033e-05/0.2027, allocations: 16 kB / 455.9 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001274/0.2028, allocations: 16 kB / 455.9 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001068/0.2029, allocations: 67.67 kB / 456 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001428/0.2031, allocations: 101.5 kB / 456.1 MB, free: 4.871 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005585/0.2037, allocations: 283.5 kB / 456.4 MB, free: 4.594 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.2037, allocations: 0 / 456.4 MB, free: 4.594 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.2037, allocations: 4 kB / 456.4 MB, free: 4.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.435e-05/0.2037, allocations: 0 / 456.4 MB, free: 4.59 MB / 334.1 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.001942/0.2057, allocations: 0.6854 MB / 457.1 MB, free: 3.855 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.819e-05/0.2058, allocations: 12.03 kB / 457.1 MB, free: 3.844 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001154/0.2059, allocations: 62.55 kB / 457.1 MB, free: 3.773 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002093/0.2061, allocations: 51.34 kB / 457.2 MB, free: 3.723 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007118/0.2068, allocations: 329.2 kB / 457.5 MB, free: 3.363 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.577e-05/0.2069, allocations: 24.66 kB / 457.5 MB, free: 3.34 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001098/0.207, allocations: 39.89 kB / 457.6 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000857/0.2079, allocations: 297.7 kB / 457.8 MB, free: 2.992 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.509e-05/0.2079, allocations: 4 kB / 457.9 MB, free: 2.988 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.44e-05/0.208, allocations: 15.89 kB / 457.9 MB, free: 2.973 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.804e-05/0.208, allocations: 8 kB / 457.9 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006707/0.2087, allocations: 202.1 kB / 458.1 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002918/0.2117, allocations: 1.12 MB / 459.2 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006846/0.2124, allocations: 243.5 kB / 459.4 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.24e-05/0.2124, allocations: 11.97 kB / 459.4 MB, free: 1.316 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.48e-05/0.2125, allocations: 38.55 kB / 459.5 MB, free: 1.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 3.527e-06/0.2125, allocations: 0 / 459.5 MB, free: 1.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.003066/0.2156, allocations: 0.9447 MB / 460.4 MB, free: 260 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.848e-05/0.2157, allocations: 51.41 kB / 460.5 MB, free: 196 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006105/0.2163, allocations: 353.8 kB / 460.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.173e-05/0.2164, allocations: 33.7 kB / 460.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002374/0.2166, allocations: 212.3 kB / 461.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000153/0.2168, allocations: 122.1 kB / 461.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.706e-05/0.2168, allocations: 8 kB / 461.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002062/0.217, allocations: 354.8 kB / 461.5 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002836/0.2173, allocations: 84.7 kB / 461.6 MB, free: 15.01 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003272/0.2177, allocations: 137.5 kB / 461.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003507/0.218, allocations: 107.9 kB / 461.9 MB, free: 14.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.218, allocations: 0 / 461.9 MB, free: 14.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.00157/0.2196, allocations: 421 kB / 462.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.777e-05/0.2197, allocations: 11.89 kB / 462.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/0.2197, allocations: 4 kB / 462.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009384/0.2206, allocations: 116.9 kB / 462.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007416/0.2214, allocations: 95.88 kB / 462.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005257/0.2267, allocations: 3.135 MB / 465.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005556/0.2273, allocations: 15.98 kB / 465.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.157e-05/0.2273, allocations: 8 kB / 465.7 MB, free: 10.68 MB / 350.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.0003415/0.2277, allocations: 154.6 kB / 465.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000126/0.2278, allocations: 43.48 kB / 465.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008753/0.2287, allocations: 310.3 kB / 466.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.335e-06/0.2287, allocations: 4 kB / 466.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.2288, allocations: 4.547 kB / 466.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.2288, allocations: 3.984 kB / 466.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001761/0.2305, allocations: 0.7602 MB / 466.9 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.2306, allocations: 0 / 466.9 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006776/0.2313, allocations: 75.97 kB / 467 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.208e-05/0.2313, allocations: 4 kB / 467 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.141e-05/0.2313, allocations: 11.92 kB / 467 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.128e-05/0.2314, allocations: 4 kB / 467 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.2314, allocations: 7.938 kB / 467 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001153/0.2325, allocations: 495.2 kB / 467.5 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002698/0.2328, allocations: 136.5 kB / 467.6 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.048e-05/0.2329, allocations: 8 kB / 467.6 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003582/0.2333, allocations: 8 kB / 467.7 MB, free: 8.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.945e-05/0.2334, allocations: 19.97 kB / 467.7 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.967e-05/0.2334, allocations: 8 kB / 467.7 MB, free: 8.543 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004515/0.2339, allocations: 255.2 kB / 467.9 MB, free: 8.301 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.2339, allocations: 0 / 467.9 MB, free: 8.301 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007543/0.2347, allocations: 96 kB / 468 MB, free: 8.207 MB / 350.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 34 * 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.001639/0.2363, allocations: 1.033 MB / 469.1 MB, free: 7.148 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001548/0.2379, allocations: 449.5 kB / 469.5 MB, free: 6.699 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/0.2379, allocations: 8.25 kB / 469.5 MB, free: 6.691 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003348/0.2383, allocations: 123.8 kB / 469.6 MB, free: 6.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006746/0.239, allocations: 66.88 kB / 469.7 MB, free: 6.504 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007648/0.2466, allocations: 3.28 MB / 473 MB, free: 3.156 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006005/0.2473, allocations: 0.8315 MB / 473.8 MB, free: 2.301 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003363/0.2477, allocations: 42.94 kB / 473.8 MB, free: 2.258 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003466/0.248, allocations: 139.4 kB / 474 MB, free: 2.121 MB / 350.1 MB Notification: Performance of SimCode: time 1.303e-06/0.248, allocations: 0 / 474 MB, free: 2.121 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04023/0.2883, allocations: 7.844 MB / 481.8 MB, free: 10.27 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003286/0.2887, allocations: 224.3 kB / 482 MB, free: 10.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.513/3.802, allocations: 0 / 482 MB, free: 10.02 MB / 366.1 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) Environment - environmentSimulation: