Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.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.0008552/0.0008552, allocations: 83.69 kB / 20.67 MB, free: 3.883 MB / 18.57 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.000836/0.000836, allocations: 174 kB / 23.95 MB, free: 0.6055 MB / 18.57 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 0.8145/0.8145, allocations: 158.6 MB / 185.7 MB, free: 3.051 MB / 170.7 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.1673/0.1673, allocations: 36.34 MB / 274.3 MB, free: 10.9 MB / 266.7 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.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 0 / 414.3 MB, free: 6.117 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.813e-05/2.011e-05, allocations: 6.219 kB / 414.3 MB, free: 6.109 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical3): time 0.002396/0.002416, allocations: 2.169 MB / 416.5 MB, free: 3.926 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008723/0.003288, allocations: 0.6317 MB / 417.1 MB, free: 3.285 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001141/0.003402, allocations: 7.938 kB / 417.1 MB, free: 3.277 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00012/0.003522, allocations: 31.66 kB / 417.2 MB, free: 3.246 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001996/0.003722, allocations: 83.27 kB / 417.2 MB, free: 3.164 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001494/0.003871, allocations: 63.91 kB / 417.3 MB, free: 3.102 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002482/0.00412, allocations: 298.5 kB / 417.6 MB, free: 2.809 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001387/0.004258, allocations: 49.58 kB / 417.6 MB, free: 2.758 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000176/0.004434, allocations: 167.5 kB / 417.8 MB, free: 2.594 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001156/0.00455, allocations: 87.69 kB / 417.9 MB, free: 2.508 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.555e-05/0.004575, allocations: 20 kB / 417.9 MB, free: 2.488 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.963e-05/0.004625, allocations: 20 kB / 417.9 MB, free: 2.469 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.71e-05/0.004662, allocations: 55.75 kB / 418 MB, free: 2.414 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 6.259e-05/0.004725, allocations: 83.77 kB / 418.1 MB, free: 2.332 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002246/0.004949, allocations: 227.2 kB / 418.3 MB, free: 2.109 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.904e-06/0.004951, allocations: 4 kB / 418.3 MB, free: 2.105 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.004952, allocations: 0 / 418.3 MB, free: 2.105 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.489e-06/0.004957, allocations: 0 / 418.3 MB, free: 2.105 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0005969/0.005554, allocations: 0.4891 MB / 418.8 MB, free: 1.586 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.005587, allocations: 12.03 kB / 418.8 MB, free: 1.574 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.721e-05/0.005625, allocations: 46.73 kB / 418.8 MB, free: 1.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.99e-05/0.005695, allocations: 36.69 kB / 418.9 MB, free: 1.484 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002569/0.005951, allocations: 212.7 kB / 419.1 MB, free: 1.246 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.693e-05/0.006008, allocations: 63.97 kB / 419.1 MB, free: 1.172 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.884e-05/0.006037, allocations: 24.36 kB / 419.2 MB, free: 1.148 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000224/0.006261, allocations: 171.9 kB / 419.3 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.006275, allocations: 15.88 kB / 419.4 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.324e-05/0.006288, allocations: 8 kB / 419.4 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.006294, allocations: 4 kB / 419.4 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001766/0.006471, allocations: 119.7 kB / 419.5 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006485/0.007119, allocations: 0.5659 MB / 420 MB, free: 216 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000253/0.007372, allocations: 149 kB / 420.2 MB, free: 60 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001056/0.007478, allocations: 76.75 kB / 420.3 MB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.271e-05/0.007491, allocations: 4 kB / 420.3 MB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.841e-05/0.007509, allocations: 38.5 kB / 420.3 MB, free: 15.93 MB / 362.7 MB Notification: Performance of pre-optimization done (n=18): time 1.222e-06/0.00751, allocations: 0 / 420.3 MB, free: 15.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.0007202/0.00823, allocations: 0.5125 MB / 420.8 MB, free: 15.38 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.767e-05/0.008258, allocations: 55.36 kB / 420.9 MB, free: 15.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001585/0.008417, allocations: 237.9 kB / 421.1 MB, free: 15.07 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.352e-05/0.00843, allocations: 25.7 kB / 421.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.741e-05/0.008498, allocations: 152.5 kB / 421.3 MB, free: 14.89 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.667e-05/0.008534, allocations: 71.42 kB / 421.4 MB, free: 14.82 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.691e-05/0.008581, allocations: 37.67 kB / 421.4 MB, free: 14.78 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.16e-05/0.008663, allocations: 338.8 kB / 421.7 MB, free: 14.44 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.162e-05/0.008744, allocations: 55.97 kB / 421.8 MB, free: 14.38 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.314e-05/0.008837, allocations: 89.55 kB / 421.9 MB, free: 14.29 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004268/0.009264, allocations: 149.3 kB / 422 MB, free: 14.14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.009266, allocations: 0 / 422 MB, free: 14.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002284/0.009494, allocations: 205.4 kB / 422.2 MB, free: 13.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.009508, allocations: 6.969 kB / 422.2 MB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.009513, allocations: 7.969 kB / 422.2 MB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.009524, allocations: 4 kB / 422.2 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002185/0.009743, allocations: 75.89 kB / 422.3 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.009749, allocations: 4 kB / 422.3 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.089e-05/0.00982, allocations: 15.98 kB / 422.3 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.009831, allocations: 4 kB / 422.3 MB, free: 13.82 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 (BreakerCommand.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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 prepare postOptimizeDAE: time 8.37e-05/0.009915, allocations: 133.7 kB / 422.5 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.781e-05/0.009942, allocations: 31.86 kB / 422.5 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.348e-05/0.009976, allocations: 26.11 kB / 422.5 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.009978, allocations: 4 kB / 422.5 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.009982, allocations: 0 / 422.5 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.009985, allocations: 0 / 422.5 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004617/0.01045, allocations: 0.4937 MB / 423 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.01045, allocations: 3.938 kB / 423 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001859/0.01063, allocations: 59.97 kB / 423.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.053e-06/0.01064, allocations: 4 kB / 423.1 MB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.648e-06/0.01065, allocations: 4 kB / 423.1 MB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.01065, allocations: 0 / 423.1 MB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.01065, allocations: 7.969 kB / 423.1 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003263/0.01098, allocations: 355.1 kB / 423.4 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.869e-05/0.01102, allocations: 35.84 kB / 423.5 MB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.1e-05/0.01105, allocations: 7.984 kB / 423.5 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.163e-05/0.01112, allocations: 8 kB / 423.5 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.989e-05/0.01116, allocations: 19.97 kB / 423.5 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.01116, allocations: 4 kB / 423.5 MB, free: 12.56 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001022/0.01126, allocations: 177.2 kB / 423.7 MB, free: 12.39 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01126, allocations: 0 / 423.7 MB, free: 12.39 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001813/0.01145, allocations: 40 kB / 423.7 MB, free: 12.35 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (generator.phi,generator.omega_m,generator.omega_e_filt,grid.port.theta) * Number of discrete variables: 1 (BreakerCommand.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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.0004658/0.01191, allocations: 0.8763 MB / 424.6 MB, free: 11.44 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002019/0.01211, allocations: 140.1 kB / 424.7 MB, free: 11.3 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.212e-06/0.01212, allocations: 0 / 424.7 MB, free: 11.3 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.184e-05/0.0122, allocations: 72.42 kB / 424.8 MB, free: 11.23 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000252/0.01245, allocations: 40.77 kB / 424.8 MB, free: 11.2 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002013/0.01446, allocations: 2.542 MB / 427.4 MB, free: 8.562 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.026e-05/0.01454, allocations: 142.1 kB / 427.5 MB, free: 8.406 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.138e-05/0.0146, allocations: 21.95 kB / 427.5 MB, free: 8.383 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.522e-05/0.01469, allocations: 80.45 kB / 427.6 MB, free: 8.305 MB / 362.7 MB Notification: Performance of SimCode: time 4.21e-07/0.01469, allocations: 0 / 427.6 MB, free: 8.305 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01679/0.03148, allocations: 5.348 MB / 433 MB, free: 2.918 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.11/7.141, allocations: 0 / 433 MB, free: 2.918 MB / 362.7 MB " [Timeout remaining time 653] (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3_fmu --startTime=0 --stopTime=10 --stepSize=0.002 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.941602136008441] Failed to read output from testmodel.py, exit status != 0: 7.2241449654102325 7.233863789 7.227264643 Calling exit ...