Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical7.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001522/0.001522, allocations: 115.6 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001424/0.001424, allocations: 214.2 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.387/1.387, allocations: 230.6 MB / 257.5 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 4.0.0-dev/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 4.0.0-dev/package.mo): time 0.1495/0.1495, allocations: 26.82 MB / 340.8 MB, free: 8.195 MB / 270.1 MB " [Timeout remaining time 180] Using package ThermoPower with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 4.0.0-dev/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical7,fileNamePrefix="ThermoPower_4_0_0-dev_ThermoPower_Test_ElectricalComponents_TestElectrical7",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical7,fileNamePrefix="ThermoPower_4_0_0-dev_ThermoPower_Test_ElectricalComponents_TestElectrical7",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ThermoPower requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001996, allocations: 67.83 kB / 476.8 MB, free: 3.684 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3042/0.3062, allocations: 60.47 MB / 0.5247 GB, free: 9.578 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.003603/0.3098, allocations: 3.182 MB / 0.5278 GB, free: 7.332 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001367/0.3112, allocations: 0.8436 MB / 0.5286 GB, free: 6.727 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002522/0.3114, allocations: 9.688 kB / 0.5287 GB, free: 6.723 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001901/0.3116, allocations: 61.77 kB / 0.5287 GB, free: 6.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003751/0.312, allocations: 157.3 kB / 0.5289 GB, free: 6.566 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002885/0.3123, allocations: 121.8 kB / 0.529 GB, free: 6.504 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005141/0.3128, allocations: 0.5178 MB / 0.5295 GB, free: 6.246 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002227/0.313, allocations: 111 kB / 0.5296 GB, free: 6.172 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000333/0.3134, allocations: 219.5 kB / 0.5298 GB, free: 6.07 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002987/0.3137, allocations: 228.8 kB / 0.53 GB, free: 5.953 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.906e-05/0.3137, allocations: 35.12 kB / 0.5301 GB, free: 5.953 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.933e-05/0.3138, allocations: 42.25 kB / 0.5301 GB, free: 5.949 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.415e-05/0.3139, allocations: 92.59 kB / 0.5302 GB, free: 5.887 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002232/0.3141, allocations: 232.1 kB / 0.5304 GB, free: 5.742 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000647/0.3148, allocations: 440.5 kB / 0.5308 GB, free: 5.539 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3148, allocations: 0.6562 kB / 0.5308 GB, free: 5.539 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3148, allocations: 0.6094 kB / 0.5308 GB, free: 5.539 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.484e-05/0.3148, allocations: 0.5625 kB / 0.5308 GB, free: 5.539 MB / 382.1 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.001466/0.3162, allocations: 0.7404 MB / 0.5315 GB, free: 5.008 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.3163, allocations: 9.531 kB / 0.5316 GB, free: 5.008 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.582e-05/0.3164, allocations: 68.44 kB / 0.5316 GB, free: 4.949 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001331/0.3165, allocations: 56.53 kB / 0.5317 GB, free: 4.922 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004934/0.317, allocations: 313.5 kB / 0.532 GB, free: 4.684 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.041e-05/0.317, allocations: 23.19 kB / 0.532 GB, free: 4.676 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.608e-05/0.3171, allocations: 44.11 kB / 0.532 GB, free: 4.656 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005137/0.3176, allocations: 315.1 kB / 0.5323 GB, free: 4.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.898e-05/0.3176, allocations: 5.25 kB / 0.5323 GB, free: 4.496 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.998e-05/0.3176, allocations: 15.09 kB / 0.5324 GB, free: 4.484 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.3176, allocations: 12 kB / 0.5324 GB, free: 4.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003909/0.318, allocations: 212.5 kB / 0.5326 GB, free: 4.422 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001718/0.3197, allocations: 1.096 MB / 0.5336 GB, free: 3.699 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004829/0.3202, allocations: 247.3 kB / 0.5339 GB, free: 3.59 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002027/0.3204, allocations: 114.4 kB / 0.534 GB, free: 3.547 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.442e-05/0.3205, allocations: 7.766 kB / 0.534 GB, free: 3.543 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.838e-05/0.3205, allocations: 40.47 kB / 0.534 GB, free: 3.496 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 2.525e-06/0.3205, allocations: 5.625 kB / 0.534 GB, free: 3.492 MB / 382.1 MB Notification: Performance of matching and sorting (n=35): time 0.001968/0.3225, allocations: 0.8683 MB / 0.5349 GB, free: 3.027 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.401e-05/0.3225, allocations: 60.3 kB / 0.5349 GB, free: 2.961 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003587/0.3228, allocations: 377.9 kB / 0.5353 GB, free: 2.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.3229, allocations: 35.89 kB / 0.5353 GB, free: 2.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.323, allocations: 223.9 kB / 0.5356 GB, free: 2.547 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.357e-05/0.323, allocations: 128.8 kB / 0.5357 GB, free: 2.445 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.3231, allocations: 79.34 kB / 0.5357 GB, free: 2.395 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.668e-05/0.3232, allocations: 354.8 kB / 0.5361 GB, free: 2.062 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001675/0.3234, allocations: 92.31 kB / 0.5362 GB, free: 2.031 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001894/0.3236, allocations: 150.1 kB / 0.5363 GB, free: 1.945 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003476/0.3239, allocations: 260.9 kB / 0.5366 GB, free: 1.797 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.3239, allocations: 0 / 0.5366 GB, free: 1.797 MB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004818/0.3244, allocations: 342.2 kB / 0.5369 GB, free: 1.645 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.3244, allocations: 9.297 kB / 0.5369 GB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.3244, allocations: 4.969 kB / 0.5369 GB, free: 1.641 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.3244, allocations: 3.25 kB / 0.5369 GB, free: 1.641 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007044/0.3251, allocations: 154.2 kB / 0.5371 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000805/0.3259, allocations: 1.33 MB / 0.5384 GB, free: 276 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002783/0.3262, allocations: 15.28 kB / 0.5384 GB, free: 268 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.673e-05/0.3263, allocations: 17.77 kB / 0.5384 GB, free: 260 kB / 382.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 (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000148/0.3264, allocations: 163 kB / 0.5385 GB, free: 104 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.658e-05/0.3265, allocations: 51.09 kB / 0.5386 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005574/0.327, allocations: 312.6 kB / 0.5389 GB, free: 15.92 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.327, allocations: 4.125 kB / 0.5389 GB, free: 15.92 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.327, allocations: 3.984 kB / 0.5389 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.327, allocations: 3.953 kB / 0.5389 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001177/0.3282, allocations: 0.7618 MB / 0.5396 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.3282, allocations: 0 / 0.5396 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004136/0.3286, allocations: 84.58 kB / 0.5397 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.3286, allocations: 0 / 0.5397 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.438e-05/0.3287, allocations: 10.3 kB / 0.5397 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.3287, allocations: 0 / 0.5397 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3287, allocations: 0 / 0.5397 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007295/0.3294, allocations: 0.5102 MB / 0.5402 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001503/0.3295, allocations: 66.48 kB / 0.5403 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.007e-05/0.3296, allocations: 10.16 kB / 0.5403 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002295/0.3298, allocations: 9.281 kB / 0.5403 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.585e-05/0.3299, allocations: 23.66 kB / 0.5403 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.767e-05/0.3299, allocations: 9.797 kB / 0.5403 GB, free: 15.09 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000311/0.3302, allocations: 267.1 kB / 0.5406 GB, free: 14.96 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3302, allocations: 0 / 0.5406 GB, free: 14.96 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003686/0.3306, allocations: 93.5 kB / 0.5407 GB, free: 14.94 MB / 398.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001058/0.3316, allocations: 1.061 MB / 0.5417 GB, free: 14.11 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000676/0.3323, allocations: 269.7 kB / 0.542 GB, free: 14.03 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3323, allocations: 0 / 0.542 GB, free: 14.03 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002168/0.3325, allocations: 124.6 kB / 0.5421 GB, free: 13.99 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005327/0.3331, allocations: 79.98 kB / 0.5422 GB, free: 13.96 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00549/0.3386, allocations: 3.991 MB / 0.5461 GB, free: 11.36 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004864/0.3391, allocations: 0.8287 MB / 0.5469 GB, free: 10.59 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002129/0.3393, allocations: 55.27 kB / 0.5469 GB, free: 10.56 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002439/0.3395, allocations: 146.6 kB / 0.5471 GB, free: 10.44 MB / 398.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3395, allocations: 0 / 0.5471 GB, free: 10.44 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03947/0.379, allocations: 9.05 MB / 0.5559 GB, free: 4.664 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.13/11.51, allocations: 7.266 kB / 0.5559 GB, free: 4.66 MB / 398.1 MB " [Timeout remaining time 648] (rm -f ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; mkfifo ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; head -c 1048576 < ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe >> ../files/ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical7.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_4_0_0-dev_ThermoPower_Test_ElectricalComponents_TestElectrical7_fmu --startTime=0 --stopTime=300 --stepSize=0.12 --timeout=50 --tolerance=1e-06 ThermoPower_4_0_0-dev_ThermoPower_Test_ElectricalComponents_TestElectrical7.fmu > ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.068185869022273] Failed to read output from testmodel.py, exit status != 0: 11.62276042799931 11.63831328 11.320254474 Calling exit ...