Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_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.001659/0.001659, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001628/0.001628, allocations: 205.2 kB / 24.52 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.278/1.278, allocations: 207.6 MB / 235.3 MB, free: 10.02 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo): time 0.2751/0.2751, allocations: 49.56 MB / 337.1 MB, free: 4.207 MB / 270.1 MB " [Timeout remaining time 180] Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 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.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_ThermoPower_Test_ElectricalComponents_TestElectrical7",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002117/0.002117, allocations: 72.38 kB / 477.1 MB, free: 12.96 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1051, allocations: 62.43 MB / 0.5269 GB, free: 14.34 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.004648/0.1097, allocations: 3.154 MB / 0.53 GB, free: 11.16 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001379/0.1111, allocations: 0.8499 MB / 0.5308 GB, free: 10.3 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001569/0.1113, allocations: 7.938 kB / 0.5308 GB, free: 10.29 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000159/0.1114, allocations: 59.31 kB / 0.5309 GB, free: 10.23 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003427/0.1118, allocations: 158.7 kB / 0.531 GB, free: 10.08 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002564/0.112, allocations: 123.7 kB / 0.5311 GB, free: 9.957 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005497/0.1126, allocations: 0.5256 MB / 0.5317 GB, free: 9.43 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002067/0.1128, allocations: 106 kB / 0.5318 GB, free: 9.32 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002624/0.1131, allocations: 219.1 kB / 0.532 GB, free: 9.105 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003058/0.1134, allocations: 222.9 kB / 0.5322 GB, free: 8.887 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.584e-05/0.1134, allocations: 32 kB / 0.5322 GB, free: 8.855 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.878e-05/0.1135, allocations: 44 kB / 0.5322 GB, free: 8.812 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.449e-05/0.1136, allocations: 91.56 kB / 0.5323 GB, free: 8.723 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002067/0.1138, allocations: 234.7 kB / 0.5326 GB, free: 8.492 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004886/0.1143, allocations: 437.9 kB / 0.533 GB, free: 8.062 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.1143, allocations: 0 / 0.533 GB, free: 8.062 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1143, allocations: 0 / 0.533 GB, free: 8.062 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.623e-06/0.1143, allocations: 3.938 kB / 0.533 GB, free: 8.059 MB / 414.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.001325/0.1156, allocations: 0.7342 MB / 0.5337 GB, free: 7.293 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.1157, allocations: 8.031 kB / 0.5337 GB, free: 7.285 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.568e-05/0.1157, allocations: 12.84 kB / 0.5337 GB, free: 7.273 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.368e-05/0.1157, allocations: 66.72 kB / 0.5338 GB, free: 7.199 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001279/0.1159, allocations: 56.61 kB / 0.5338 GB, free: 7.145 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004894/0.1164, allocations: 312.5 kB / 0.5341 GB, free: 6.812 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.457e-05/0.1164, allocations: 29.03 kB / 0.5342 GB, free: 6.785 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.632e-05/0.1164, allocations: 40.31 kB / 0.5342 GB, free: 6.746 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005246/0.117, allocations: 321.8 kB / 0.5345 GB, free: 6.414 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.98e-05/0.117, allocations: 4 kB / 0.5345 GB, free: 6.41 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.67e-05/0.117, allocations: 12 kB / 0.5345 GB, free: 6.398 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.117, allocations: 8 kB / 0.5345 GB, free: 6.391 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004191/0.1174, allocations: 214.4 kB / 0.5347 GB, free: 6.184 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001881/0.1193, allocations: 1.1 MB / 0.5358 GB, free: 5.02 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005/0.1198, allocations: 245.3 kB / 0.536 GB, free: 4.773 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002199/0.12, allocations: 121.7 kB / 0.5362 GB, free: 4.652 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.355e-05/0.1201, allocations: 4.281 kB / 0.5362 GB, free: 4.648 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.907e-05/0.1201, allocations: 38.83 kB / 0.5362 GB, free: 4.602 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 1.483e-06/0.1201, allocations: 0 / 0.5362 GB, free: 4.602 MB / 414.1 MB Notification: Performance of matching and sorting (n=35): time 0.002055/0.1222, allocations: 0.8765 MB / 0.5371 GB, free: 3.691 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.163e-05/0.1222, allocations: 55.41 kB / 0.5371 GB, free: 3.625 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004175/0.1226, allocations: 385.5 kB / 0.5375 GB, free: 3.238 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.131e-05/0.1226, allocations: 33.7 kB / 0.5375 GB, free: 3.199 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001693/0.1228, allocations: 224.9 kB / 0.5377 GB, free: 2.977 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.1229, allocations: 126.9 kB / 0.5378 GB, free: 2.852 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001161/0.123, allocations: 74.12 kB / 0.5379 GB, free: 2.773 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.1232, allocations: 350.8 kB / 0.5383 GB, free: 2.422 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001949/0.1234, allocations: 92.83 kB / 0.5383 GB, free: 2.332 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002219/0.1236, allocations: 148.6 kB / 0.5385 GB, free: 2.172 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004128/0.124, allocations: 252 kB / 0.5387 GB, free: 1.91 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.124, allocations: 4 kB / 0.5387 GB, free: 1.906 MB / 414.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005768/0.1246, allocations: 345.1 kB / 0.5391 GB, free: 1.562 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.1246, allocations: 4 kB / 0.5391 GB, free: 1.559 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.1246, allocations: 7.984 kB / 0.5391 GB, free: 1.551 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.1247, allocations: 0 / 0.5391 GB, free: 1.551 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007092/0.1254, allocations: 148 kB / 0.5392 GB, free: 1.406 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1789/0.3043, allocations: 1.345 MB / 0.5405 GB, free: 22.06 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004054/0.3047, allocations: 12.59 kB / 0.5405 GB, free: 22.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.468e-05/0.3047, allocations: 11.61 kB / 0.5405 GB, free: 22.06 MB / 414.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.0002172/0.3049, allocations: 158 kB / 0.5407 GB, free: 21.95 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001052/0.305, allocations: 43.53 kB / 0.5407 GB, free: 21.95 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005906/0.3056, allocations: 313.2 kB / 0.541 GB, free: 21.91 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.3056, allocations: 4.172 kB / 0.541 GB, free: 21.91 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.3056, allocations: 0 / 0.541 GB, free: 21.91 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.191e-06/0.3057, allocations: 3.391 kB / 0.541 GB, free: 21.91 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001094/0.3067, allocations: 0.756 MB / 0.5418 GB, free: 21.65 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.3068, allocations: 0.7031 kB / 0.5418 GB, free: 21.65 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004074/0.3072, allocations: 81.42 kB / 0.5419 GB, free: 21.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.616e-06/0.3072, allocations: 3.688 kB / 0.5419 GB, free: 21.65 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.73e-05/0.3072, allocations: 9.938 kB / 0.5419 GB, free: 21.65 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.3072, allocations: 2.594 kB / 0.5419 GB, free: 21.65 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.3072, allocations: 0.6094 kB / 0.5419 GB, free: 21.65 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009251/0.3081, allocations: 0.5224 MB / 0.5424 GB, free: 21.5 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000157/0.3083, allocations: 65.2 kB / 0.5424 GB, free: 21.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.664e-05/0.3083, allocations: 10.05 kB / 0.5425 GB, free: 21.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002267/0.3086, allocations: 10.73 kB / 0.5425 GB, free: 21.5 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.991e-05/0.3086, allocations: 29.39 kB / 0.5425 GB, free: 21.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.759e-05/0.3087, allocations: 6.578 kB / 0.5425 GB, free: 21.5 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002881/0.3089, allocations: 270.1 kB / 0.5428 GB, free: 21.41 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3089, allocations: 1.781 kB / 0.5428 GB, free: 21.41 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003634/0.3093, allocations: 82.41 kB / 0.5428 GB, free: 21.41 MB / 414.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.0008463/0.3102, allocations: 1.063 MB / 0.5439 GB, free: 20.73 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000656/0.3108, allocations: 270.6 kB / 0.5441 GB, free: 20.67 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3108, allocations: 0 / 0.5441 GB, free: 20.67 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001994/0.311, allocations: 128.9 kB / 0.5443 GB, free: 20.63 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005321/0.3115, allocations: 94.58 kB / 0.5443 GB, free: 20.59 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004967/0.3165, allocations: 3.974 MB / 0.5482 GB, free: 18.25 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003151/0.3168, allocations: 0.8339 MB / 0.549 GB, free: 17.55 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002002/0.317, allocations: 53.02 kB / 0.5491 GB, free: 17.54 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002123/0.3172, allocations: 153.2 kB / 0.5492 GB, free: 17.43 MB / 414.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3172, allocations: 0 / 0.5492 GB, free: 17.43 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03758/0.3548, allocations: 9.054 MB / 0.5581 GB, free: 15.98 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.64, allocations: 18.67 kB / 0.5581 GB, free: 15.96 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7_fmu --startTime=0 --stopTime=300 --stepSize=0.12 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.320344222011045] Failed to read output from testmodel.py, exit status != 0: 11.815260950941592 11.826618911 11.709840957 Calling exit ...