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.001723/0.001723, allocations: 115.8 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.002135/0.002135, 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.396/1.396, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.1478/0.1478, allocations: 26.82 MB / 340.7 MB, free: 8.223 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.001975/0.001975, allocations: 67.84 kB / 476.8 MB, free: 3.699 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2934/0.2954, allocations: 60.47 MB / 0.5247 GB, free: 9.535 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.003725/0.2991, allocations: 3.18 MB / 0.5278 GB, free: 7.285 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001438/0.3006, allocations: 0.8447 MB / 0.5286 GB, free: 6.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002197/0.3008, allocations: 10.69 kB / 0.5287 GB, free: 6.676 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000168/0.301, allocations: 56.02 kB / 0.5287 GB, free: 6.637 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003268/0.3013, allocations: 155.1 kB / 0.5289 GB, free: 6.527 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002558/0.3015, allocations: 130.7 kB / 0.529 GB, free: 6.453 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005023/0.3021, allocations: 0.5187 MB / 0.5295 GB, free: 6.195 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000204/0.3023, allocations: 107 kB / 0.5296 GB, free: 6.129 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003172/0.3026, allocations: 219.6 kB / 0.5298 GB, free: 6.027 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003023/0.3029, allocations: 224.4 kB / 0.53 GB, free: 5.914 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.704e-05/0.3029, allocations: 34.66 kB / 0.53 GB, free: 5.914 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.437e-05/0.303, allocations: 42.22 kB / 0.5301 GB, free: 5.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.524e-05/0.3031, allocations: 97.88 kB / 0.5302 GB, free: 5.844 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002056/0.3033, allocations: 235.2 kB / 0.5304 GB, free: 5.695 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005716/0.3039, allocations: 441.2 kB / 0.5308 GB, free: 5.492 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.3039, allocations: 0.5 kB / 0.5308 GB, free: 5.492 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3039, allocations: 0.5312 kB / 0.5308 GB, free: 5.492 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.3039, allocations: 0 / 0.5308 GB, free: 5.492 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.001446/0.3053, allocations: 0.7329 MB / 0.5315 GB, free: 4.969 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.3054, allocations: 9.562 kB / 0.5316 GB, free: 4.969 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.838e-05/0.3054, allocations: 68.22 kB / 0.5316 GB, free: 4.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001387/0.3056, allocations: 57.08 kB / 0.5317 GB, free: 4.883 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004828/0.3061, allocations: 313.4 kB / 0.532 GB, free: 4.645 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.368e-05/0.3061, allocations: 27.22 kB / 0.532 GB, free: 4.633 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.974e-05/0.3061, allocations: 39.92 kB / 0.532 GB, free: 4.617 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005033/0.3067, allocations: 320 kB / 0.5323 GB, free: 4.457 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.3067, allocations: 0 / 0.5323 GB, free: 4.457 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.679e-05/0.3067, allocations: 19.92 kB / 0.5324 GB, free: 4.441 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.14e-05/0.3067, allocations: 7.75 kB / 0.5324 GB, free: 4.441 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004018/0.3071, allocations: 211.7 kB / 0.5326 GB, free: 4.383 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001638/0.3087, allocations: 1.104 MB / 0.5336 GB, free: 3.652 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004354/0.3092, allocations: 239.3 kB / 0.5339 GB, free: 3.551 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00019/0.3094, allocations: 126.3 kB / 0.534 GB, free: 3.496 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.077e-05/0.3094, allocations: 4.094 kB / 0.534 GB, free: 3.496 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.338e-05/0.3094, allocations: 36.88 kB / 0.534 GB, free: 3.453 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 2.114e-06/0.3094, allocations: 1.562 kB / 0.534 GB, free: 3.453 MB / 382.1 MB Notification: Performance of matching and sorting (n=35): time 0.001865/0.3113, allocations: 0.868 MB / 0.5349 GB, free: 2.988 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.546e-05/0.3113, allocations: 56.5 kB / 0.5349 GB, free: 2.926 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003642/0.3117, allocations: 386.3 kB / 0.5353 GB, free: 2.727 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.993e-05/0.3117, allocations: 31.02 kB / 0.5353 GB, free: 2.691 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.3118, allocations: 228.1 kB / 0.5356 GB, free: 2.504 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.991e-05/0.3119, allocations: 136 kB / 0.5357 GB, free: 2.395 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.206e-05/0.312, allocations: 80.2 kB / 0.5358 GB, free: 2.344 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.301e-05/0.312, allocations: 350.5 kB / 0.5361 GB, free: 2.016 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001641/0.3122, allocations: 92.81 kB / 0.5362 GB, free: 1.984 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.3124, allocations: 149.1 kB / 0.5363 GB, free: 1.898 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003374/0.3127, allocations: 255.8 kB / 0.5366 GB, free: 1.754 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.3127, allocations: 5.406 kB / 0.5366 GB, free: 1.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.00048/0.3132, allocations: 346.4 kB / 0.5369 GB, free: 1.594 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.3132, allocations: 9.031 kB / 0.5369 GB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.3132, allocations: 2.078 kB / 0.5369 GB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.3132, allocations: 3.5 kB / 0.5369 GB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007059/0.3139, allocations: 149.6 kB / 0.5371 GB, free: 1.582 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008039/0.3147, allocations: 1.33 MB / 0.5384 GB, free: 232 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002902/0.315, allocations: 14.36 kB / 0.5384 GB, free: 224 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.394e-05/0.3151, allocations: 14.25 kB / 0.5384 GB, free: 220 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.0001476/0.3152, allocations: 162.5 kB / 0.5385 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.92e-05/0.3153, allocations: 48.28 kB / 0.5386 GB, free: 36 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005772/0.3159, allocations: 320.4 kB / 0.5389 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.3159, allocations: 3.344 kB / 0.5389 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.3159, allocations: 1.094 kB / 0.5389 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.3159, allocations: 2.344 kB / 0.5389 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001182/0.317, allocations: 0.7596 MB / 0.5396 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.317, allocations: 0 / 0.5396 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004035/0.3175, allocations: 82.27 kB / 0.5397 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.3175, allocations: 2 kB / 0.5397 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.449e-05/0.3175, allocations: 11.39 kB / 0.5397 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.135e-06/0.3175, allocations: 1.5 kB / 0.5397 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3175, allocations: 0 / 0.5397 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007368/0.3182, allocations: 0.5112 MB / 0.5402 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001629/0.3184, allocations: 65.67 kB / 0.5403 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.961e-05/0.3184, allocations: 6.219 kB / 0.5403 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002321/0.3187, allocations: 14.19 kB / 0.5403 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.41e-05/0.3187, allocations: 26.08 kB / 0.5403 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.869e-05/0.3187, allocations: 12.05 kB / 0.5404 GB, free: 15.05 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003023/0.319, allocations: 270 kB / 0.5406 GB, free: 14.91 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.319, allocations: 0 / 0.5406 GB, free: 14.91 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003718/0.3194, allocations: 94.09 kB / 0.5407 GB, free: 14.89 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.001039/0.3205, allocations: 1.056 MB / 0.5417 GB, free: 14.07 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006776/0.3211, allocations: 266.3 kB / 0.542 GB, free: 13.99 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.3211, allocations: 0 / 0.542 GB, free: 13.99 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002191/0.3214, allocations: 128.2 kB / 0.5421 GB, free: 13.95 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005444/0.3219, allocations: 78.11 kB / 0.5422 GB, free: 13.92 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00548/0.3274, allocations: 3.999 MB / 0.5461 GB, free: 11.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000447/0.3278, allocations: 0.8323 MB / 0.5469 GB, free: 10.56 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002215/0.328, allocations: 46 kB / 0.5469 GB, free: 10.53 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002467/0.3283, allocations: 152.1 kB / 0.5471 GB, free: 10.41 MB / 398.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3283, allocations: 0 / 0.5471 GB, free: 10.41 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03983/0.3681, allocations: 9.047 MB / 0.5559 GB, free: 4.695 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.72, allocations: 10.83 kB / 0.5559 GB, free: 4.691 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 & python3 -m fmpy simulate --output-file ThermoPower_4.0.0-dev_ThermoPower.Test.ElectricalComponents.TestElectrical7_res.csv --start-time 0 --stop-time 300 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.12 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.366449506953359] Failed to read output from testmodel.py, exit status != 0: 11.822907246067189 11.841215521 11.5338037 Calling exit ...